[][src]Enum quicksilver::input::GamepadButton

#[repr(u32)]
pub enum GamepadButton {
    FaceDown,
    FaceRight,
    FaceLeft,
    FaceUp,
    ShoulderLeft,
    ShoulderRight,
    TriggerLeft,
    TriggerRight,
    Select,
    Start,
    StickButtonLeft,
    StickButtonRight,
    DpadUp,
    DpadDown,
    DpadLeft,
    DpadRight,
    Home,
}

A button on a gamepad

Variants

FaceDown

The bottom face button

This would be X on a Playstation controller, or A on an XBOX controller

FaceRight

The right face button

This would be O on a Playstation controller, or B on an XBOX controller

FaceLeft

The left face button

This would be Square on a Playstation controller, or X on an XBOX controller

FaceUp

The top face button

This would be Triangle on a Playstation controller, or Y on an XBOX controller

ShoulderLeft

The shoulder button on the left of the controller

ShoulderRight

The shoulder button on the right of the controller

TriggerLeft

The trigger button on the left of the controller

TriggerRight

The trigger button on the right of the controller

Select

The left-most of the center buttons

Start

The right-most of the center buttons

StickButtonLeft

The button press that pushing in the left stick causes

StickButtonRight

The button press that pushing in the right stick causes

DpadUp

The up button on the dpad

DpadDown

The down button on the dpad

DpadLeft

The left button on the dpad

DpadRight

The right button on the dpad

Home

The middle of the center buttons

Trait Implementations

impl Clone for GamepadButton[src]

impl Copy for GamepadButton[src]

impl Eq for GamepadButton[src]

impl PartialEq<GamepadButton> for GamepadButton[src]

impl Debug for GamepadButton[src]

impl Index<GamepadButton> for Gamepad[src]

type Output = ButtonState

The returned type after indexing.

impl Hash for GamepadButton[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> CollisionObjectHandle for T where
    T: 'static + Send + Copy + Sync + PartialEq<T> + Eq + Hash
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Slottable for T where
    T: Copy
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]