Module input

Functions

is_gamepad () Return if gamepad is connected
parse_key (key, scancode, isrepeat, controllerType) Parse keyboard input, and return the proper command
get_keys (command) Return keys for specific command
get_button_name (command) Returns button name for command


Functions

is_gamepad ()
Return if gamepad is connected
parse_key (key, scancode, isrepeat, controllerType)
Parse keyboard input, and return the proper command

Parameters:

  • key String. Character of the pressed key
  • scancode String. The scancode representing the pressed key
  • isrepeat Boolean. Whether this keypress event is a repeat. The delay between key repeats depends on the user's system settings
  • controllerType String. The type of controller. Optional, defeaults to keyboard
get_keys (command)
Return keys for specific command

Parameters:

  • command String. Command name
get_button_name (command)
Returns button name for command

Parameters:

  • command String. Command name
generated by LDoc 1.5.0 Last updated 2025-05-24 09:49:55