Struct pc_keyboard::Modifiers
source · pub struct Modifiers {
pub lshift: bool,
pub rshift: bool,
pub lctrl: bool,
pub rctrl: bool,
pub numlock: bool,
pub capslock: bool,
pub lalt: bool,
pub ralt: bool,
pub rctrl2: bool,
}
Expand description
The set of modifier keys you have on a keyboard.
Fields§
§lshift: bool
The left shift key is down
rshift: bool
The right shift key is down
lctrl: bool
The left control key is down
rctrl: bool
The right control key is down
numlock: bool
The Num Lock toggle is on
capslock: bool
The caps lock toggle is on
lalt: bool
The left alt key is down
ralt: bool
The right alt key is down
rctrl2: bool
Special ‘hidden’ control key is down (used when you press Pause)
Implementations§
Trait Implementations§
impl Eq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Freeze for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)