Game Python Reference Manual.
[blender.git] / source / gameengine / PyDoc / SCA_MouseSensor.py
1 # Documentation for SCA_MouseSensor
2 from SCA_ISensor import *
3
4 class SCA_MouseSensor(SCA_ISensor):
5         """
6         Mouse Sensor logic brick.
7         """
8
9         def getXPosition():
10                 """
11                 Gets the x coordinate of the mouse.
12                 
13                 @rtype: integer
14                 @return: the current x coordinate of the mouse, in frame coordinates (pixels)
15                 """
16         def getYPosition():
17                 """
18                 Gets the y coordinate of the mouse.
19                 
20                 @rtype: integer
21                 @return: the current y coordinate of the mouse, in frame coordinates (pixels).
22                 """