Enum sdl2::joystick::HatState [−][src]
pub enum HatState {
Centered,
Up,
Right,
Down,
Left,
RightUp,
RightDown,
LeftUp,
LeftDown,
}Expand description
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
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HatState
impl UnwindSafe for HatState
Blanket Implementations
Mutably borrows from an owned value. Read more