Enum keyboard_types::KeyState
[−]
[src]
pub enum KeyState { Down, Up, }
Describes the state the key is in.
Variants
Down
Key is pressed.
In JS: "keydown" event firing.
Up
Key is released.
In JS: "keyup event".
Trait Implementations
impl Copy for KeyState
[src]
impl Clone for KeyState
[src]
fn clone(&self) -> KeyState
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