Enum tetra::input::GamepadAxis
source · #[non_exhaustive]
pub enum GamepadAxis {
LeftStickX,
LeftStickY,
LeftTrigger,
RightStickX,
RightStickY,
RightTrigger,
}
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.
Trait Implementations§
source§impl Clone for GamepadAxis
impl Clone for GamepadAxis
source§fn clone(&self) -> GamepadAxis
fn clone(&self) -> GamepadAxis
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 GamepadAxis
impl Debug for GamepadAxis
source§impl Hash for GamepadAxis
impl Hash for GamepadAxis
source§impl PartialEq<GamepadAxis> for GamepadAxis
impl PartialEq<GamepadAxis> for GamepadAxis
source§fn eq(&self, other: &GamepadAxis) -> bool
fn eq(&self, other: &GamepadAxis) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.