#[repr(i32)]
pub enum SDL_GameControllerButton {
Show 17 variants
SDL_CONTROLLER_BUTTON_INVALID,
SDL_CONTROLLER_BUTTON_A,
SDL_CONTROLLER_BUTTON_B,
SDL_CONTROLLER_BUTTON_X,
SDL_CONTROLLER_BUTTON_Y,
SDL_CONTROLLER_BUTTON_BACK,
SDL_CONTROLLER_BUTTON_GUIDE,
SDL_CONTROLLER_BUTTON_START,
SDL_CONTROLLER_BUTTON_LEFTSTICK,
SDL_CONTROLLER_BUTTON_RIGHTSTICK,
SDL_CONTROLLER_BUTTON_LEFTSHOULDER,
SDL_CONTROLLER_BUTTON_RIGHTSHOULDER,
SDL_CONTROLLER_BUTTON_DPAD_UP,
SDL_CONTROLLER_BUTTON_DPAD_DOWN,
SDL_CONTROLLER_BUTTON_DPAD_LEFT,
SDL_CONTROLLER_BUTTON_DPAD_RIGHT,
SDL_CONTROLLER_BUTTON_MAX,
}
Expand description
The list of buttons available from a controller
Variants
SDL_CONTROLLER_BUTTON_INVALID
SDL_CONTROLLER_BUTTON_A
SDL_CONTROLLER_BUTTON_B
SDL_CONTROLLER_BUTTON_X
SDL_CONTROLLER_BUTTON_Y
SDL_CONTROLLER_BUTTON_BACK
SDL_CONTROLLER_BUTTON_GUIDE
SDL_CONTROLLER_BUTTON_START
SDL_CONTROLLER_BUTTON_LEFTSTICK
SDL_CONTROLLER_BUTTON_RIGHTSTICK
SDL_CONTROLLER_BUTTON_LEFTSHOULDER
SDL_CONTROLLER_BUTTON_RIGHTSHOULDER
SDL_CONTROLLER_BUTTON_DPAD_UP
SDL_CONTROLLER_BUTTON_DPAD_DOWN
SDL_CONTROLLER_BUTTON_DPAD_LEFT
SDL_CONTROLLER_BUTTON_DPAD_RIGHT
SDL_CONTROLLER_BUTTON_MAX
Trait Implementations
sourceimpl Clone for SDL_GameControllerButton
impl Clone for SDL_GameControllerButton
sourcefn clone(&self) -> SDL_GameControllerButton
fn clone(&self) -> SDL_GameControllerButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SDL_GameControllerButton
impl Debug for SDL_GameControllerButton
sourceimpl Hash for SDL_GameControllerButton
impl Hash for SDL_GameControllerButton
sourceimpl PartialEq<SDL_GameControllerButton> for SDL_GameControllerButton
impl PartialEq<SDL_GameControllerButton> for SDL_GameControllerButton
sourcefn eq(&self, other: &SDL_GameControllerButton) -> bool
fn eq(&self, other: &SDL_GameControllerButton) -> bool
impl Copy for SDL_GameControllerButton
impl Eq for SDL_GameControllerButton
impl StructuralEq for SDL_GameControllerButton
impl StructuralPartialEq for SDL_GameControllerButton
Auto Trait Implementations
impl RefUnwindSafe for SDL_GameControllerButton
impl Send for SDL_GameControllerButton
impl Sync for SDL_GameControllerButton
impl Unpin for SDL_GameControllerButton
impl UnwindSafe for SDL_GameControllerButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more