Struct piston_window::controller::ControllerHat[][src]

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

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


id: u32

Which Controller was the button on.

state: HatState

Which button was pressed.

which: u8

Which hat on the controller was changed


impl ControllerHat[src]

pub fn new(id: u32, which: u8, state: HatState) -> ControllerHat[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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.