Enum sdl2_sys::SDL_GameControllerType
source · #[repr(u32)]pub enum SDL_GameControllerType {
Show 14 variants
SDL_CONTROLLER_TYPE_UNKNOWN = 0,
SDL_CONTROLLER_TYPE_XBOX360 = 1,
SDL_CONTROLLER_TYPE_XBOXONE = 2,
SDL_CONTROLLER_TYPE_PS3 = 3,
SDL_CONTROLLER_TYPE_PS4 = 4,
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO = 5,
SDL_CONTROLLER_TYPE_VIRTUAL = 6,
SDL_CONTROLLER_TYPE_PS5 = 7,
SDL_CONTROLLER_TYPE_AMAZON_LUNA = 8,
SDL_CONTROLLER_TYPE_GOOGLE_STADIA = 9,
SDL_CONTROLLER_TYPE_NVIDIA_SHIELD = 10,
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT = 11,
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT = 12,
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR = 13,
}
Variants§
SDL_CONTROLLER_TYPE_UNKNOWN = 0
SDL_CONTROLLER_TYPE_XBOX360 = 1
SDL_CONTROLLER_TYPE_XBOXONE = 2
SDL_CONTROLLER_TYPE_PS3 = 3
SDL_CONTROLLER_TYPE_PS4 = 4
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO = 5
SDL_CONTROLLER_TYPE_VIRTUAL = 6
SDL_CONTROLLER_TYPE_PS5 = 7
SDL_CONTROLLER_TYPE_AMAZON_LUNA = 8
SDL_CONTROLLER_TYPE_GOOGLE_STADIA = 9
SDL_CONTROLLER_TYPE_NVIDIA_SHIELD = 10
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT = 11
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT = 12
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR = 13
Trait Implementations§
source§impl Clone for SDL_GameControllerType
impl Clone for SDL_GameControllerType
source§fn clone(&self) -> SDL_GameControllerType
fn clone(&self) -> SDL_GameControllerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for SDL_GameControllerType
impl Hash for SDL_GameControllerType
source§impl PartialEq for SDL_GameControllerType
impl PartialEq for SDL_GameControllerType
source§fn eq(&self, other: &SDL_GameControllerType) -> bool
fn eq(&self, other: &SDL_GameControllerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_GameControllerType
impl Eq for SDL_GameControllerType
impl StructuralPartialEq for SDL_GameControllerType
Auto Trait Implementations§
impl Freeze for SDL_GameControllerType
impl RefUnwindSafe for SDL_GameControllerType
impl Send for SDL_GameControllerType
impl Sync for SDL_GameControllerType
impl Unpin for SDL_GameControllerType
impl UnwindSafe for SDL_GameControllerType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more