Module macroquad::input[][src]

Cross-platform mouse, keyboard (and gamepads soon) module.

Enums

KeyCode
MouseButton

Functions

get_char_pressed

Return the last pressed char. Each "get_char_pressed" call will consume a character from the input queue.

get_last_key_pressed

Return the last pressed key.

is_key_down

Detect if the key is being pressed

is_key_pressed

Detect if the key has been pressed once

is_mouse_button_down

Detect if the key is being pressed

is_mouse_button_pressed

Detect if the key has been pressed once

is_mouse_button_released

Detect if the key has been released this frame

mouse_position

Return mouse position in pixels.

mouse_position_local

Return mouse position in range [-1; 1].

mouse_wheel