4 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).
$keycache.get(user: User, keymap: Reference, aliases: list, remap: bool, ignore_input_mode: bool) -> list
Create a key cache with the states of a set of buttons.
| Parameter | Type | Meaning |
|---|
user | User | The user handle. |
keymap | Reference | The keymap used to determine aliased keys. |
aliases | list | The list of key aliases to store in the cache. |
remap | bool | Whether to consider keymap remapping data of the given user. |
ignore_input_mode | bool | Whether to ignore the input mode when checking if the keymap is active. |
Returns list: A list containing the cache information.
$keycache.is_down(cache: list, alias_hash: int) -> bool
Test if aliased input is held down.
| Parameter | Type | Meaning |
|---|
cache | list | The key cache. |
alias_hash | int | The hash of the name of the aliased input. |
Returns bool: True if the aliased key is down.
$keycache.is_pressed(cache: list, alias_hash: int) -> bool
Test if aliased input changed from up to down this frame.
| Parameter | Type | Meaning |
|---|
cache | list | The key cache. |
alias_hash | int | The hash of the name of the aliased input. |
Returns bool: True if the aliased key was pressed.
$keycache.is_released(cache: list, alias_hash: int) -> bool
Test if aliased input changed from down to up this frame.
| Parameter | Type | Meaning |
|---|
cache | list | The key cache. |
alias_hash | int | The hash of the name of the aliased input. |
Returns bool: True if the aliased key was released.