16 lines
397 B
Rust
16 lines
397 B
Rust
|
|
/// The current state of the keyboard modifiers.
|
||
|
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||
|
|
pub struct ModifiersState {
|
||
|
|
/// Whether a shift key is pressed
|
||
|
|
pub shift: bool,
|
||
|
|
|
||
|
|
/// Whether a control key is pressed
|
||
|
|
pub control: bool,
|
||
|
|
|
||
|
|
/// Whether an alt key is pressed
|
||
|
|
pub alt: bool,
|
||
|
|
|
||
|
|
/// Whether a logo key is pressed (e.g. windows key, command key...)
|
||
|
|
pub logo: bool,
|
||
|
|
}
|