pub struct KeyboardState {
pub keys: [bool; 256],
}Expand description
Per-frame keyboard held-state snapshot, indexed by SDL scancode.
Donor: oa::input::KeyboardState.
Fields§
§keys: [bool; 256]Implementations§
Trait Implementations§
Source§impl Clone for KeyboardState
impl Clone for KeyboardState
Source§impl Debug for KeyboardState
impl Debug for KeyboardState
Auto Trait Implementations§
impl Forget for KeyboardState
impl Freeze for KeyboardState
impl Move for KeyboardState
impl RefUnwindSafe for KeyboardState
impl Send for KeyboardState
impl Sync for KeyboardState
impl Unpin for KeyboardState
impl UnsafeUnpin for KeyboardState
impl UnwindSafe for KeyboardState
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