Enum airmash_protocol::KeyCode [] [src]

pub enum KeyCode {
    Up,
    Down,
    Left,
    Right,
    Fire,
    Special,
}

All the keys that are sent from the client to the server.

Variants

Methods

impl KeyCode
[src]

[src]

Get the keycode associated with the numerical value. Returns None otherwise.

[src]

Get the numerical value associated with the keycode.

This value is the value that is actually sent over the network.

Trait Implementations

impl Debug for KeyCode
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for KeyCode
[src]

impl Clone for KeyCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for KeyCode
[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 KeyCode
[src]

Auto Trait Implementations

impl Send for KeyCode

impl Sync for KeyCode