Struct cognitive_inputs::keyboard_state::KeyMods [] [src]

pub struct KeyMods {
    pub depressed: u32,
    pub latched: u32,
    pub locked: u32,
    pub effective: u32,
}

This struct represents state of keyboard modifiers (shift, ctrl, etc...).

Fields

Methods

impl KeyMods
[src]

Constructs default KeyMods.

Constructs KeyMods from given modifiers.

Trait Implementations

impl Clone for KeyMods
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for KeyMods
[src]

impl Debug for KeyMods
[src]

Formats the value using the given formatter.

impl Eq for KeyMods
[src]

impl PartialEq for KeyMods
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.