Struct piston::ControllerHat [−][src]
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) -> 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,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,