#[repr(C)]pub enum GamepadButton {
Show 18 variants
Unknown = 0,
LeftFaceUp = 1,
LeftFaceRight = 2,
LeftFaceDown = 3,
LeftFaceLeft = 4,
RightFaceUp = 5,
RightFaceRight = 6,
RightFaceDown = 7,
RightFaceLeft = 8,
LeftTrigger1 = 9,
LeftTrigger2 = 10,
RightTrigger1 = 11,
RightTrigger2 = 12,
MiddleLeft = 13,
Middle = 14,
MiddleRight = 15,
LeftThumb = 16,
RightThumb = 17,
}Expand description
Gamepad buttons
Variants§
Unknown = 0
Unknown button, just for error checking
LeftFaceUp = 1
Gamepad left DPAD up button
LeftFaceRight = 2
Gamepad left DPAD right button
LeftFaceDown = 3
Gamepad left DPAD down button
LeftFaceLeft = 4
Gamepad left DPAD left button
RightFaceUp = 5
Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)
RightFaceRight = 6
Gamepad right button right (i.e. PS3: Square, Xbox: X)
RightFaceDown = 7
Gamepad right button down (i.e. PS3: Cross, Xbox: A)
RightFaceLeft = 8
Gamepad right button left (i.e. PS3: Circle, Xbox: B)
LeftTrigger1 = 9
Gamepad top/back trigger left (first), it could be a trailing button
LeftTrigger2 = 10
Gamepad top/back trigger left (second), it could be a trailing button
RightTrigger1 = 11
Gamepad top/back trigger right (one), it could be a trailing button
RightTrigger2 = 12
Gamepad top/back trigger right (second), it could be a trailing button
MiddleLeft = 13
Gamepad center buttons, left one (i.e. PS3: Select)
Middle = 14
Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)
MiddleRight = 15
Gamepad center buttons, right one (i.e. PS3: Start)
LeftThumb = 16
Gamepad joystick pressed button left
RightThumb = 17
Gamepad joystick pressed button right
Trait Implementations§
Source§impl Clone for GamepadButton
impl Clone for GamepadButton
Source§fn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GamepadButton
Source§impl Debug for GamepadButton
impl Debug for GamepadButton
impl Eq for GamepadButton
Source§impl Hash for GamepadButton
impl Hash for GamepadButton
Source§impl PartialEq for GamepadButton
impl PartialEq for GamepadButton
Source§fn eq(&self, other: &GamepadButton) -> bool
fn eq(&self, other: &GamepadButton) -> bool
self and other values to be equal, and is used by ==.