Enum sdl2::controller::Axis
[−]
[src]
#[repr(i32)]pub enum Axis { LeftX, LeftY, RightX, RightY, TriggerLeft, TriggerRight, }
Variants
LeftX
LeftY
RightX
RightY
TriggerLeft
TriggerRight
Methods
impl Axis
[src]
pub fn from_string(axis: &str) -> Option<Axis>
[src]
Return the Axis from a string description in the same format used by the game controller mapping strings.
pub fn string(self) -> String
[src]
Return a string for a given axis in the same format using by the game controller mapping strings
pub fn from_ll(bitflags: SDL_GameControllerAxis) -> Option<Axis>
[src]
pub fn to_ll(&self) -> SDL_GameControllerAxis
[src]
Trait Implementations
impl Copy for Axis
[src]
impl Clone for Axis
[src]
fn clone(&self) -> Axis
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Axis
[src]
impl PartialEq for Axis
[src]
fn eq(&self, __arg_0: &Axis) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Hash for Axis
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more