[−][src]Enum sdl2::joystick::HatState
pub enum HatState { Centered, Up, Right, Down, Left, RightUp, RightDown, LeftUp, LeftDown, }
This is represented in SDL2 as a bitfield but obviously not all combinations make sense: 5 for instance would mean up and down at the same time... To simplify things I turn it into an enum which is how the SDL2 docs present it anyway (using macros).
Variants
Methods
impl HatState
[src][−]
Trait Implementations
impl Clone for HatState
[src][+]
impl Copy for HatState
[src]
impl Debug for HatState
[src][+]
impl Eq for HatState
[src]
impl Hash for HatState
[src][+]
impl PartialEq<HatState> for HatState
[src][+]
impl StructuralEq for HatState
[src]
impl StructuralPartialEq for HatState
[src]
Auto Trait Implementations
impl RefUnwindSafe for HatState
impl Send for HatState
impl Sync for HatState
impl Unpin for HatState
impl UnwindSafe for HatState
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> 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>,