Enum tetra::input::GamepadAxis
source · pub enum GamepadAxis {
LeftStickX,
LeftStickY,
LeftTrigger,
RightStickX,
RightStickY,
RightTrigger,
}
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 From<Axis> for GamepadAxis
impl From<Axis> for GamepadAxis
source§fn from(axis: SdlAxis) -> GamepadAxis
fn from(axis: SdlAxis) -> GamepadAxis
Converts to this type from the input type.
source§impl From<GamepadAxis> for SdlAxis
impl From<GamepadAxis> for SdlAxis
source§fn from(axis: GamepadAxis) -> SdlAxis
fn from(axis: GamepadAxis) -> SdlAxis
Converts to this type from the input type.
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
impl Copy for GamepadAxis
impl Eq for GamepadAxis
impl StructuralEq for GamepadAxis
impl StructuralPartialEq for GamepadAxis
Auto Trait Implementations§
impl RefUnwindSafe for GamepadAxis
impl Send for GamepadAxis
impl Sync for GamepadAxis
impl Unpin for GamepadAxis
impl UnwindSafe for GamepadAxis
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SetParameter for T
impl<T> SetParameter for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.