#[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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GamepadButton
impl Debug for GamepadButton
source§impl Hash for GamepadButton
impl Hash for GamepadButton
source§impl PartialEq for GamepadButton
impl PartialEq for GamepadButton
impl Copy for GamepadButton
impl Eq for GamepadButton
impl StructuralPartialEq for GamepadButton
Auto Trait Implementations§
impl Freeze for GamepadButton
impl RefUnwindSafe for GamepadButton
impl Send for GamepadButton
impl Sync for GamepadButton
impl Unpin for GamepadButton
impl UnwindSafe for GamepadButton
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)