Struct input::controller::ControllerButton [] [src]

pub struct ControllerButton {
    pub id: i32,
    pub button: u8,
}

Components of a controller button event. Not guaranteed consistent across backends.

Fields

Which controller was the button on.

Which button was pressed.

Methods

impl ControllerButton
[src]

[src]

Create a new ControllerButton object. Intended for use by backends when emitting events.

Trait Implementations

impl Copy for ControllerButton
[src]

impl Clone for ControllerButton
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Decodable for ControllerButton
[src]

[src]

Deserialize a value using a Decoder.

impl Encodable for ControllerButton
[src]

[src]

Serialize a value using an Encoder.

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

impl Debug for ControllerButton
[src]

[src]

Formats the value using the given formatter.

impl Hash for ControllerButton
[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