Struct cognitive_inputs::keyboard_state::KeyboardState [] [src]

pub struct KeyboardState { /* fields omitted */ }

Represents state of keyboard.

Methods

impl KeyboardState
[src]

Constructs new KeyboardState.

Updates state with given key. Returns true when modifiers changed, false otherwise.

Returns state of modifiers.