Module spectrusty_utils::keyboard::sdl2
source · Expand description
Keyboard related functions to be used with SDL2.
Requires “sdl2” 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 key down or up event.
Returns an updated Spectrum keymap state from a
key
down or up event.Returns an updated Spectrum keymap state from a
key
down or up event.Returns an updated keypad’s keymap state from a key down or up event.
Returns an updated keypad keymap state from a key down or up event.