Game Python Reference Manual.
This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc. Missing: Actuator & Controller reference.
This commit is contained in:
22
source/gameengine/PyDoc/SCA_MouseSensor.py
Normal file
22
source/gameengine/PyDoc/SCA_MouseSensor.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Documentation for SCA_MouseSensor
|
||||
from SCA_ISensor import *
|
||||
|
||||
class SCA_MouseSensor(SCA_ISensor):
|
||||
"""
|
||||
Mouse Sensor logic brick.
|
||||
"""
|
||||
|
||||
def getXPosition():
|
||||
"""
|
||||
Gets the x coordinate of the mouse.
|
||||
|
||||
@rtype: integer
|
||||
@return: the current x coordinate of the mouse, in frame coordinates (pixels)
|
||||
"""
|
||||
def getYPosition():
|
||||
"""
|
||||
Gets the y coordinate of the mouse.
|
||||
|
||||
@rtype: integer
|
||||
@return: the current y coordinate of the mouse, in frame coordinates (pixels).
|
||||
"""
|
||||
Reference in New Issue
Block a user