Module SCA_MouseSensor :: Class SCA_MouseSensor
[hide private]
[frames] | no frames]

Class SCA_MouseSensor

source code

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

Mouse Sensor logic brick.

Instance Methods [hide private]
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, getLevel, getUseNegPulseMode, getUsePosPulseMode, isPositive, isTriggered, reset, setFrequency, setInvert, setLevel, setUseNegPulseMode, setUsePosPulseMode

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority

Method Details [hide private]

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).