Skip to content

Input

Read the keyboard, mouse, controllers and typed text. See the keyboard guide.

Constants: KEY_A to KEY_Z, KEY_0 to KEY_9, KEY_ESCAPE, KEY_SPACE, KEY_LEFT, KEY_RIGHT, KEY_UP, KEY_DOWN, KEY_ENTER, KEY_TAB, KEY_BACKSPACE.

Function Summary
key Check whether a key is held. key and key_down are the same function.
key_down Check a held key
key_pressed Check a press in the current tick
key_released Check a release in the current tick
mouse_button Check a held mouse button
mouse_position Read pointer position
pad_axis Read a controller axis
pad_button Check a held controller button
pad_connected Check a controller slot
text_input_next Read one typed character
text_input_set_keyboard Request the Android on-screen keyboard