2 # Documentation for SCA_MouseSensor
3 from SCA_ISensor import *
5 class SCA_MouseSensor(SCA_ISensor):
7 Mouse Sensor logic brick.
11 @ivar position: current [x,y] coordinates of the mouse, in frame coordinates (pixels)
12 @type position: [integer,interger]
13 @ivar mode: sensor mode: 1=KX_MOUSESENSORMODE_LEFTBUTTON 2=KX_MOUSESENSORMODE_MIDDLEBUTTON
14 3=KX_MOUSESENSORMODE_RIGHTBUTTON 4=KX_MOUSESENSORMODE_WHEELUP
15 5=KX_MOUSESENSORMODE_WHEELDOWN 9=KX_MOUSESENSORMODE_MOVEMENT
21 DEPRECATED: use the position property
22 Gets the x coordinate of the mouse.
25 @return: the current x coordinate of the mouse, in frame coordinates (pixels)
29 DEPRECATED: use the position property
30 Gets the y coordinate of the mouse.
33 @return: the current y coordinate of the mouse, in frame coordinates (pixels).