Enum input::Button [] [src]

pub enum Button {
    Keyboard(Key),
    Mouse(MouseButton),
    Controller(ControllerButton),
}

Models different kinds of buttons.

Variants

A keyboard button.

A mouse button.

A controller button.

Trait Implementations

impl Copy for Button
[src]

impl Clone for Button
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Decodable for Button
[src]

[src]

Deserialize a value using a Decoder.

impl Encodable for Button
[src]

[src]

Serialize a value using an Encoder.

impl PartialEq for Button
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Button
[src]

impl Hash for Button
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Button
[src]

[src]

Formats the value using the given formatter.

impl From<Key> for Button
[src]

[src]

Performs the conversion.

impl From<MouseButton> for Button
[src]

[src]

Performs the conversion.

impl From<ControllerButton> for Button
[src]

[src]

Performs the conversion.