Enum ggez::event::Axis [−][src]
#[repr(i32)]pub enum Axis { LeftX, LeftY, RightX, RightY, TriggerLeft, TriggerRight, }
Variants
LeftX
LeftY
RightX
RightY
TriggerLeft
TriggerRight
Methods
impl Axis
[src]
impl Axis
pub fn from_string(axis: &str) -> Option<Axis>
[src]
pub 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.
pub fn string(self) -> String
[src]
pub fn string(self) -> String
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 from_ll(bitflags: SDL_GameControllerAxis) -> Option<Axis>
pub fn to_ll(&self) -> SDL_GameControllerAxis
[src]
pub fn to_ll(&self) -> SDL_GameControllerAxis
Trait Implementations
impl Hash for Axis
[src]
impl Hash for Axis
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Axis
[src]
impl Clone for Axis
fn clone(&self) -> Axis
[src]
fn clone(&self) -> Axis
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Axis
[src]
impl Debug for Axis
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for Axis
[src]
impl Copy for Axis
impl Eq for Axis
[src]
impl Eq for Axis
impl PartialEq<Axis> for Axis
[src]
impl PartialEq<Axis> for Axis