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

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

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

Fields

id: u32

Which Controller was the button on.

state: HatState

Which button was pressed.

which: u8

Which hat on the controller was changed

Implementations

impl ControllerHat[src]

pub fn new(id: u32, which: u8, state: HatState) -> Self[src]

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

Trait Implementations

impl Clone for ControllerHat[src]

impl Copy for ControllerHat[src]

impl Debug for ControllerHat[src]

impl<'de> Deserialize<'de> for ControllerHat[src]

impl Eq for ControllerHat[src]

impl Hash for ControllerHat[src]

impl Ord for ControllerHat[src]

impl PartialEq<ControllerHat> for ControllerHat[src]

impl PartialOrd<ControllerHat> for ControllerHat[src]

impl Serialize for ControllerHat[src]

impl StructuralEq for ControllerHat[src]

impl StructuralPartialEq for ControllerHat[src]

Auto Trait Implementations

impl RefUnwindSafe for ControllerHat

impl Send for ControllerHat

impl Sync for ControllerHat

impl Unpin for ControllerHat

impl UnwindSafe for ControllerHat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.