#[repr(transparent)]pub struct SDL_JoystickType(pub c_uint);Expand description
An enum of some common joystick types.
In some cases, SDL can identify a low-level joystick as being a certain type of device, and will report it through SDL_GetJoystickType (or SDL_GetJoystickTypeForID).
This is by no means a complete list of everything that can be plugged into a computer.
You may refer to XInput Controller Types table for a general understanding of each joystick type.
Available Since: This enum is available since SDL 3.2.0.
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_JoystickType
impl SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_UNKNOWN: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_GAMEPAD: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_WHEEL: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_ARCADE_STICK: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_FLIGHT_STICK: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_DANCE_PAD: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_GUITAR: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_DRUM_KIT: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_ARCADE_PAD: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_THROTTLE: SDL_JoystickType
pub const SDL_JOYSTICK_TYPE_COUNT: SDL_JoystickType
Trait Implementations§
Source§impl Clone for SDL_JoystickType
impl Clone for SDL_JoystickType
Source§fn clone(&self) -> SDL_JoystickType
fn clone(&self) -> SDL_JoystickType
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_JoystickType
impl Debug for SDL_JoystickType
Source§impl Hash for SDL_JoystickType
impl Hash for SDL_JoystickType
Source§impl PartialEq for SDL_JoystickType
impl PartialEq for SDL_JoystickType
impl Copy for SDL_JoystickType
impl Eq for SDL_JoystickType
impl StructuralPartialEq for SDL_JoystickType
Auto Trait Implementations§
impl Freeze for SDL_JoystickType
impl RefUnwindSafe for SDL_JoystickType
impl Send for SDL_JoystickType
impl Sync for SDL_JoystickType
impl Unpin for SDL_JoystickType
impl UnsafeUnpin for SDL_JoystickType
impl UnwindSafe for SDL_JoystickType
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