This module provides functions related to keyboard input.
Return whether or not a key is pressed.
See the documentation for sge.input.KeyPress for more information.
Return whether or not a modifier key is being held.
Arguments:
Modifier Key Name | Identifier String |
---|---|
Alt | "alt" |
Left Alt | "alt_left" |
Right Alt | "alt_right" |
Ctrl | "ctrl" |
Left Ctrl | "ctrl_left" |
Right Ctrl | "ctrl_right" |
Meta | "meta" |
Left Meta | "meta_left" |
Right Meta | "meta_right" |
Shift | "shift" |
Left Shift | "shift_left" |
Right Shift | "shift_right" |
Mode | "mode" |
Caps Lock | "caps_lock" |
Num Lock | "num_lock" |
Set repetition of key press events.
Arguments:
If enabled is set to true, this causes a key being held down to generate additional key press events as long as it remains held down.
Return whether or not repetition of key press events is enabled.
See the documentation for sge.keyboard.set_repeat() for more information.
Return the interval in between each repeated key press event.
See the documentation for sge.keyboard.set_repeat() for more information.
Return the delay before repeating key press events.
See the documentation for sge.keyboard.set_repeat() for more information.