Struct wasm4_sx::GamepadState
source · pub struct GamepadState { /* private fields */ }
Expand description
Gamepad state.
Implementations§
source§impl GamepadState
impl GamepadState
Check if a button is pressed.
Check if a button was just pressed.
Trait Implementations§
source§impl Default for GamepadState
impl Default for GamepadState
source§fn default() -> GamepadState
fn default() -> GamepadState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GamepadState
impl Send for GamepadState
impl Sync for GamepadState
impl Unpin for GamepadState
impl UnwindSafe for GamepadState
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