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
depressed: u32
latched: u32
locked: u32
effective: u32
Methods
impl KeyMods
[src]
fn default() -> Self
Constructs default KeyMods
.
fn new(depressed: u32, latched: u32, locked: u32, effective: u32) -> Self
Constructs KeyMods
from given modifiers.
Trait Implementations
impl Clone for KeyMods
[src]
fn clone(&self) -> KeyMods
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more