#[repr(transparent)]pub struct SDL_GamepadType(pub c_uint);Expand description
Standard gamepad types.
This type does not necessarily map to first-party controllers from Microsoft/Sony/Nintendo; in many cases, third-party controllers can report as these, either because they were designed for a specific console, or they simply most closely match that console’s controllers (does it have A/B/X/Y buttons or X/O/Square/Triangle? Does it have a touchpad? etc).
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_GamepadType
impl SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_UNKNOWN: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_STANDARD: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_XBOX360: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_XBOXONE: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_PS3: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_PS4: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_PS5: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_LEFT: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_GAMECUBE: SDL_GamepadType
pub const SDL_GAMEPAD_TYPE_COUNT: SDL_GamepadType
Trait Implementations§
Source§impl Clone for SDL_GamepadType
impl Clone for SDL_GamepadType
Source§fn clone(&self) -> SDL_GamepadType
fn clone(&self) -> SDL_GamepadType
Returns a duplicate 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 Debug for SDL_GamepadType
impl Debug for SDL_GamepadType
Source§impl Hash for SDL_GamepadType
impl Hash for SDL_GamepadType
Source§impl PartialEq for SDL_GamepadType
impl PartialEq for SDL_GamepadType
impl Copy for SDL_GamepadType
impl Eq for SDL_GamepadType
impl StructuralPartialEq for SDL_GamepadType
Auto Trait Implementations§
impl Freeze for SDL_GamepadType
impl RefUnwindSafe for SDL_GamepadType
impl Send for SDL_GamepadType
impl Sync for SDL_GamepadType
impl Unpin for SDL_GamepadType
impl UnsafeUnpin for SDL_GamepadType
impl UnwindSafe for SDL_GamepadType
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