SCA_PythonKeyboard(EXP_PyObjectPlus)
base class — EXP_PyObjectPlus
- class bge.types.SCA_PythonKeyboard
The current keyboard.
- inputs
A dictionary containing the input of each keyboard key. (read-only).
- Type:
dict[keycode,
SCA_InputEvent
]
- events
A dictionary containing the status of each keyboard event or key. (read-only).
Deprecated since version 0.2.2: Use
inputs
.
- activeInputs
A dictionary containing the input of only the active keyboard keys. (read-only).
- Type:
dict[keycode,
SCA_InputEvent
]
- active_events
A dictionary containing the status of only the active keyboard events or keys. (read-only).
Deprecated since version 0.2.2: Use
activeInputs
.
- 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