Input

input helper

Members

Properties

is_cursor_locked
bool is_cursor_locked [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mouse_position
Vector2 mouse_position [@property getter]

the position of the mouse as a vector

scroll_delta
float scroll_delta [@property getter]

the mouse scroll wheel delta

Static functions

is_key_down
bool is_key_down(Keys key)

if a key is currently down

is_key_pressed
bool is_key_pressed(Keys key)

if a key was pressed this frame

is_key_released
bool is_key_released(Keys key)

if a key was released this frame

is_key_up
bool is_key_up(Keys key)

if a key is currently up

is_mouse_down
bool is_mouse_down(MouseButton button)

if the mouse is currently down

is_mouse_pressed
bool is_mouse_pressed(MouseButton button)

if the mouse was pressed this frame

is_mouse_released
bool is_mouse_released(MouseButton button)

if the mouse was released this frame

is_mouse_up
bool is_mouse_up(MouseButton button)

if the mouse is currently up

lock_cursor
void lock_cursor()

lock the cursor

unlock_cursor
void unlock_cursor()

unlock the cursor

update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

mouse_delta
Vector2 mouse_delta;
Undocumented in source.
virtual_inputs
VirtualInput[] virtual_inputs;

global virtual input list

Meta