KX_PythonMouse
Base class: EXP_PyObjectPlus
The current mouse.
inputs
Section titled “inputs”A dictionary containing the input of each mouse event. (read-only).
Type: dictionary {keycode:SCA_InputEvent, …}
events
Section titled “events”a dictionary containing the status of each mouse event. (read-only).
Type: dictionary {keycode:status, …}
activeInputs
Section titled “activeInputs”A dictionary containing the input of only the active mouse events. (read-only).
Type: dictionary {keycode:SCA_InputEvent, …}
active_events
Section titled “active_events”a dictionary containing the status of only the active mouse events. (read-only).
Type: dictionary {keycode:status, …}
position
Section titled “position”The normalized x and y position of the mouse cursor.
Type: tuple (x, y)
visible
Section titled “visible”The visibility of the mouse cursor.
Type: boolean
Not in the Range documentation
Section titled “Not in the Range documentation”These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.
reCenter()
Section titled “reCenter()”method
Puts the cursor back in the window center (useful for first-person cameras).
deltaPosition
Section titled “deltaPosition”attribute · read-only
How much the mouse moved since the last frame, (x, y).
