Enum riddle_input::GamePadButton[][src]

pub enum GamePadButton {
    South,
    North,
    East,
    West,
    DPadUp,
    DPadDown,
    DPadLeft,
    DPadRight,
    LeftStick,
    RightStick,
    LeftShoulder,
    RightShoulder,
    LeftTrigger,
    RightTrigger,
    Start,
    Back,
}

GamePad Button identifiers.

Assumes a layout similar to an Xbox controller, with the exception that the A, B, X, and Y buttons have been renamed South, East, West, North respectively.

Variants

South
North
East
West
DPadUp
DPadDown
DPadLeft
DPadRight
LeftStick
RightStick
LeftShoulder
RightShoulder
LeftTrigger
RightTrigger
Start
Back

Trait Implementations

impl Clone for GamePadButton[src]

impl Copy for GamePadButton[src]

impl Debug for GamePadButton[src]

impl Eq for GamePadButton[src]

impl Hash for GamePadButton[src]

impl PartialEq<GamePadButton> for GamePadButton[src]

impl StructuralEq for GamePadButton[src]

impl StructuralPartialEq for GamePadButton[src]

impl TryFrom<Button> for GamePadButton[src]

type Error = Button

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for GamePadButton

impl Send for GamePadButton

impl Sync for GamePadButton

impl Unpin for GamePadButton

impl UnwindSafe for GamePadButton

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> 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.