Skip to content

KX_PythonMouse

Base class: EXP_PyObjectPlus

The current mouse.

A dictionary containing the input of each mouse event. (read-only).

Type: dictionary {keycode:SCA_InputEvent, …}

a dictionary containing the status of each mouse event. (read-only).

Type: dictionary {keycode:status, …}

A dictionary containing the input of only the active mouse events. (read-only).

Type: dictionary {keycode:SCA_InputEvent, …}

a dictionary containing the status of only the active mouse events. (read-only).

Type: dictionary {keycode:status, …}

The normalized x and y position of the mouse cursor.

Type: tuple (x, y)

The visibility of the mouse cursor.

Type: boolean

These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.

method

Puts the cursor back in the window center (useful for first-person cameras).

attribute · read-only

How much the mouse moved since the last frame, (x, y).