pub struct InputState {
pub keyboard: ButtonState<Scancode>,
pub mouse: MouseState,
}Expand description
The state of all supported input devices.
Fields§
§keyboard: ButtonState<Scancode>State of every SDL2 supported key on the keyboard
mouse: MouseStateState of every SDL2 supported mouse button, as well as the cursor’s x and y coordinates
Auto Trait Implementations§
impl Freeze for InputState
impl RefUnwindSafe for InputState
impl Send for InputState
impl Sync for InputState
impl Unpin for InputState
impl UnwindSafe for InputState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more