Module nze_game_sdl::input
source · Expand description
Used to get input from the Keyboard, Mouse, or controllers
Controls manages all of the input state and is used to query the current state.
If you want to use input, create a Controls variable and update it each frame using Controls::update. It processes sdl2 events and update structs that can be queried using the members of Controls
Modules
- Holds some enums that can be used to query controller state using
c
memeber of crate::input::Controls - for keyboard input state. query by using the
kb
member of crate::input::Controls - used to query information about the state of the mouse input. Query using
m
member of crate::input::Controls
Structs
- Holds info on input state and frame elapsed time, created using a crate::ContextSdl