Enum tetra::input::GamepadButton
source · #[non_exhaustive]
pub enum GamepadButton {
Show 17 variants
A,
B,
X,
Y,
Up,
Down,
Left,
Right,
LeftShoulder,
LeftTrigger,
LeftStick,
RightShoulder,
RightTrigger,
RightStick,
Start,
Back,
Guide,
}
Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A
B
X
Y
Up
Down
Left
Right
LeftShoulder
LeftTrigger
LeftStick
RightShoulder
RightTrigger
RightStick
Start
Back
Guide
Trait Implementations§
source§impl Clone for GamepadButton
impl Clone for GamepadButton
source§fn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GamepadButton
impl Debug for GamepadButton
source§impl Hash for GamepadButton
impl Hash for GamepadButton
source§impl PartialEq<GamepadButton> for GamepadButton
impl PartialEq<GamepadButton> for GamepadButton
source§fn eq(&self, other: &GamepadButton) -> bool
fn eq(&self, other: &GamepadButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.