Enum keyboard_types::KeyState [] [src]

pub enum KeyState {
    Down,
    Up,
}

Describes the state the key is in.

Variants

Key is pressed.

In JS: "keydown" event firing.

Key is released.

In JS: "keyup event".

Trait Implementations

impl Copy for KeyState
[src]

impl Clone for KeyState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for KeyState
[src]

Formats the value using the given formatter.

impl Eq for KeyState
[src]

impl PartialEq for KeyState
[src]

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

This method tests for !=.