Module keyboard

Module keyboard 

Source
Expand description

Keyboard related utilities.

To make use of one of the event loop dependent implementation of the keyboard utilities add one of the available features to the [dependencies] section in the Cargo configuration file.

Modules§

minifb
Keyboard related functions to be used with minifb.
sdl2
Keyboard related functions to be used with SDL2.
web_sys
Keyboard related functions to be used with web-sys.
winit
Keyboard related functions to be used with winit.

Functions§

update_joystick_from_key_event
Updates the state of the joystick device via JoystickInterface from a key down or up event.