Struct wasm4_sx::FrameContext
source · pub struct FrameContext { /* private fields */ }
Expand description
Frame context: engine state for a frame.
Implementations§
source§impl FrameContext
impl FrameContext
sourcepub fn gamepads(&self) -> &[GamepadState; 4]
pub fn gamepads(&self) -> &[GamepadState; 4]
Get the gamepads state.
sourcepub fn gamepad(&self, index: GamepadIndex) -> &GamepadState
pub fn gamepad(&self, index: GamepadIndex) -> &GamepadState
Get a specific gamepad state.
sourcepub fn mouse(&self) -> &MouseState
pub fn mouse(&self) -> &MouseState
Get the mouse state.
Auto Trait Implementations§
impl RefUnwindSafe for FrameContext
impl Send for FrameContext
impl Sync for FrameContext
impl Unpin for FrameContext
impl UnwindSafe for FrameContext
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