[][src]Struct simple_game_engine::input::InputState

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.