summaryrefslogtreecommitdiffstats
path: root/native/src/input/keyboard/modifiers_state.rs
blob: 3058c0653607fd2cbdebb6336305f921d23d3266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// The current state of the keyboard modifiers.
#[derive(Debug, Clone, Copy, PartialEq, Default)]
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,
}