Enum sdl2::controller::Axis [] [src]

pub enum Axis {
    LeftX,
    LeftY,
    RightX,
    RightY,
    TriggerLeft,
    TriggerRight,
}

Variants

LeftX
LeftY
RightX
RightY
TriggerLeft
TriggerRight

Methods

impl Axis

fn from_string(axis: &str) -> Option<Axis>

Return the Axis from a string description in the same format used by the game controller mapping strings.

fn get_string(self) -> String

Return a string for a given axis in the same format using by the game controller mapping strings

fn from_ll(bitflags: SDL_GameControllerAxis) -> Option<Axis>

Trait Implementations

Derived Implementations

impl Debug for Axis

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Axis

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialEq for Axis

fn eq(&self, __arg_0: &Axis) -> bool

fn ne(&self, __arg_0: &Axis) -> bool

impl Eq for Axis

impl Clone for Axis

fn clone(&self) -> Axis

fn clone_from(&mut self, source: &Self)

impl Copy for Axis