Struct simple_game_engine::input::InputState [−][src]
pub struct InputState { pub keyboard: ButtonState<Scancode>, pub mouse: MouseState, }
The state of all supported input devices.
Fields
keyboard: ButtonState<Scancode>
State of every SDL2 supported key on the keyboard
mouse: MouseState
State of every SDL2 supported mouse button, as well as the cursor’s x and y coordinates