Expand description

Keyboard related functions to be used with winit.

Requires “winit” feature to be enabled.

Functions

Returns Spectrum keymap flags with some bits set corresponding to the provided key code if the provided key matches one or more of the Spectrum keys.
Returns Spectrum keymap flags with a single bit set corresponding to the provided key code if the key matches one of the Spectrum’s.
Returns joystick direction flags with a single direction bit set if a key is one of ← → ↑ ↓ keys.
Returns a keypad’s keymap flags with a single bit set corresponding to the provided key code if the key matches one of the Spectrum 128k keypad’s.
Updates the state of the joystick device via [JoystickInterface] from a keyboard input event.
Returns an updated Spectrum keymap state from a keyboard input event.
Returns an updated Spectrum keymap state from a keyboard input event.
Returns an updated keypad’s keymap state from a keyboard input event.