Enum sdl2::controller::Button [] [src]

pub enum Button {
    A,
    B,
    X,
    Y,
    Back,
    Guide,
    Start,
    LeftStick,
    RightStick,
    LeftShoulder,
    RightShoulder,
    DPadUp,
    DPadDown,
    DPadLeft,
    DPadRight,
}

Variants

Methods

impl Button
[src]

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

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

Trait Implementations

impl Copy for Button
[src]

impl Clone for Button
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Button
[src]

impl PartialEq for Button
[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 Button
[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 Button
[src]

Formats the value using the given formatter.