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 alt_gr: 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
alt_gr: bool
The RAlt key is down
rctrl2: bool
Special ‘hidden’ control key is down (used when you press Pause)