Struct sixtyfps_corelib::input::KeyboardModifiers [−][src]
#[repr(C)]pub struct KeyboardModifiers {
pub alt: bool,
pub control: bool,
pub meta: bool,
pub shift: bool,
}Expand description
KeyboardModifier provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc.
On macOS, the command key is mapped to the meta modifier.
On Windows, the windows key is mapped to the meta modifier.
Fields
alt: boolIndicates the alt key on a keyboard.
control: boolIndicates the control key on a keyboard.
meta: boolIndicates the logo key on macOS and the windows key on Windows.
shift: boolIndicates the shift key on a keyboard.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for KeyboardModifiers
impl Send for KeyboardModifiers
impl Sync for KeyboardModifiers
impl Unpin for KeyboardModifiers
impl UnwindSafe for KeyboardModifiers
Blanket Implementations
Mutably borrows from an owned value. Read more