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