Struct three_d::window::Modifiers [−][src]
Expand description
State of modifiers (alt, ctrl, shift and command).
Fields
alt: boolEither of the alt keys are down (option ⌥ on Mac).
ctrl: boolEither of the control keys are down.
When checking for keyboard shortcuts, consider using Self::command instead.
shift: boolEither of the shift keys are down.
command: boolOn Windows and Linux, set this to the same value as ctrl.
On Mac, this should be set whenever one of the ⌘ Command keys are down.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Modifiers
impl UnwindSafe for Modifiers
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
