[go: up one dir, main page]

Enum keyboard_types::State [] [src]

pub enum State {
    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 State
[src]

impl Clone for State
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for State
[src]

impl PartialEq for State
[src]

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

This method tests for !=.