Struct input::controller::ControllerHat [] [src]

pub struct ControllerHat {
    pub id: i32,
    pub state: HatState,
    pub which: u8,
}

Components of a controller hat move event (d-Pad).

Fields

Which Controller was the button on.

Which button was pressed.

Which hat on the controller was changed

Methods

impl ControllerHat
[src]

[src]

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

Trait Implementations

impl Copy for ControllerHat
[src]

impl Clone for ControllerHat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl Debug for ControllerHat
[src]

[src]

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

impl Send for ControllerHat

impl Sync for ControllerHat