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: boolThe left shift key is down
rshift: boolThe right shift key is down
lctrl: boolThe left control key is down
rctrl: boolThe right control key is down
numlock: boolThe Num Lock toggle is on
capslock: boolThe caps lock toggle is on
lalt: boolThe left alt key is down
ralt: boolThe right alt key is down
rctrl2: boolSpecial ‘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