mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
587 B
587 B
KEYBOARD
FUNCTIONS
is_key_pressed(key: string): booleanis_key_just_pressed(key: string): booleanis_key_just_released(key: string): boolean
PROPERTIES
input_text: string(read_only)is_any_key_pressed: boolean(read_only)is_any_key_just_pressed: boolean(read_only)is_any_key_just_released: boolean(read_only)pressed_keys: [string](read_only)just_pressed_keys: [string](read_only)just_released_keys: [string](read_only)
EXAMPLE
if the_keyboard:is_key_pressed("w") then
the_debug:trace("move forward")
end