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]

[]

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

Trait Implementations

impl Hash for ControllerButton
[src]

[]

Feeds this value into the state given, updating the hasher as necessary.

[]

Feeds a slice of this type into the state provided.

impl Debug for ControllerButton
[src]

[]

Formats the value using the given formatter.

impl Eq for ControllerButton
[src]

impl PartialEq for ControllerButton
[src]

[]

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

[]

This method tests for !=.

impl Encodable for ControllerButton
[src]

impl Decodable for ControllerButton
[src]

impl Clone for ControllerButton
[src]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl Copy for ControllerButton
[src]