#[repr(C)]pub struct KeyState {
pub key_shift_state: u32,
pub key_toggle_state: KeyToggleState,
}Expand description
Keyboard states: including Shift/Alt/Ctrl states and Caps Lock flags.
Fields§
§key_shift_state: u32The bitmask here is determined using the SHIFT_STATE constant below.
key_toggle_state: KeyToggleStateTOGGLE_STATE
Trait Implementations§
impl Copy for KeyState
Auto Trait Implementations§
impl Freeze for KeyState
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnwindSafe for KeyState
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