Module SCA_MouseSensor :: Class SCA_MouseSensor

Class SCA_MouseSensor

source code

SCA_ILogicBrick.SCA_ILogicBrick --+    
                                  |    
            SCA_ISensor.SCA_ISensor --+
                                      |
                                     SCA_MouseSensor
Known Subclasses:
KX_MouseFocusSensor.KX_MouseFocusSensor

Mouse Sensor logic brick.

Instance Methods
integer
getXPosition()
Gets the x coordinate of the mouse.
source code
integer
getYPosition()
Gets the y coordinate of the mouse.
source code

Inherited from SCA_ISensor.SCA_ISensor: getFrequency, getInvert, getUseNegPulseMode, getUsePosPulseMode, isPositive, setFrequency, setInvert, setUseNegPulseMode, setUsePosPulseMode

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority

Method Details

getXPosition()

source code 
Gets the x coordinate of the mouse.
Returns: integer
the current x coordinate of the mouse, in frame coordinates (pixels)

getYPosition()

source code 
Gets the y coordinate of the mouse.
Returns: integer
the current y coordinate of the mouse, in frame coordinates (pixels).