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

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

Variants

Methods

impl Axis
[src]

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

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

Trait Implementations

impl Copy for Axis
[src]

impl Clone for Axis
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Axis
[src]

impl PartialEq for Axis
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Axis
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Axis
[src]

Formats the value using the given formatter.