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