SCA_PythonKeyboard(EXP_PyObjectPlus)#

base class — EXP_PyObjectPlus

class SCA_PythonKeyboard(EXP_PyObjectPlus)#

The current keyboard.

inputs#

A dictionary containing the input of each keyboard key. (read-only).

Type:

dictionary {keycode:SCA_InputEvent, …}

events#

A dictionary containing the status of each keyboard event or key. (read-only).

Deprecated since version use: inputs

Type:

dictionary {keycode:status, …}

activeInputs#

A dictionary containing the input of only the active keyboard keys. (read-only).

Type:

dictionary {keycode:SCA_InputEvent, …}

active_events#

A dictionary containing the status of only the active keyboard events or keys. (read-only).

Deprecated since version use: activeInputs

Type:

dictionary {keycode:status, …}

text#

The typed unicode text from the last frame.

Type:

string

getClipboard()#

Gets the clipboard text.

Return type:

string

setClipboard(text)#

Sets the clipboard text.

Parameters:

text (string) – New clipboard text