Enum tetra::input::GamepadButton
source · pub enum GamepadButton {
Show 17 variants
A,
B,
X,
Y,
Up,
Down,
Left,
Right,
LeftShoulder,
LeftTrigger,
LeftStick,
RightShoulder,
RightTrigger,
RightStick,
Start,
Back,
Guide,
}
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 From<Button> for GamepadButton
impl From<Button> for GamepadButton
source§fn from(button: SdlButton) -> GamepadButton
fn from(button: SdlButton) -> GamepadButton
Converts to this type from the input type.
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
impl Copy for GamepadButton
impl Eq for GamepadButton
impl StructuralEq for GamepadButton
impl StructuralPartialEq for GamepadButton
Auto Trait Implementations§
impl RefUnwindSafe for GamepadButton
impl Send for GamepadButton
impl Sync for GamepadButton
impl Unpin for GamepadButton
impl UnwindSafe for GamepadButton
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.