Enum airmash_protocol::KeyState [] [src]

pub enum KeyState {
    Pressed,
    Released,
}

The current state of a key.

This may be converted back to a bool in future versions if it turns out not to be worth it.

Variants

Methods

impl KeyState
[src]

[src]

Get the keystate from the boolean value associated with it.

[src]

Convert the keystate back to the associated boolean value.

Trait Implementations

impl Debug for KeyState
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for KeyState
[src]

impl Clone for KeyState
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for KeyState
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for KeyState
[src]

Auto Trait Implementations

impl Send for KeyState

impl Sync for KeyState