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