2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323...
[blender.git] / source / gameengine / PyDoc / SCA_MouseSensor.py
index 9550cbb..278ebe6 100644 (file)
@@ -32,3 +32,13 @@ class SCA_MouseSensor(SCA_ISensor):
                @rtype: integer
                @return: the current y coordinate of the mouse, in frame coordinates (pixels).
                """     
+       def getButtonStatus(button):
+               """
+               Get the mouse button status.
+               
+               @type button: int
+               @param button: value in GameLogic members KX_MOUSE_BUT_LEFT, KX_MOUSE_BUT_MIDDLE, KX_MOUSE_BUT_RIGHT
+               
+               @rtype: integer
+               @return: value in GameLogic members KX_INPUT_NONE, KX_INPUT_NONE, KX_INPUT_JUST_ACTIVATED, KX_INPUT_ACTIVE, KX_INPUT_JUST_RELEASED
+               """