Enum sdl2::controller::Button [−][src]
#[repr(i32)]
pub enum Button {
Show 21 variants
A,
B,
X,
Y,
Back,
Guide,
Start,
LeftStick,
RightStick,
LeftShoulder,
RightShoulder,
DPadUp,
DPadDown,
DPadLeft,
DPadRight,
Misc1,
Paddle1,
Paddle2,
Paddle3,
Paddle4,
Touchpad,
}Variants
Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Button
impl UnwindSafe for Button
Blanket Implementations
Mutably borrows from an owned value. Read more