Enum sdl2_sys::SDL_JoystickType
source · #[repr(u32)]pub enum SDL_JoystickType {
SDL_JOYSTICK_TYPE_UNKNOWN = 0,
SDL_JOYSTICK_TYPE_GAMECONTROLLER = 1,
SDL_JOYSTICK_TYPE_WHEEL = 2,
SDL_JOYSTICK_TYPE_ARCADE_STICK = 3,
SDL_JOYSTICK_TYPE_FLIGHT_STICK = 4,
SDL_JOYSTICK_TYPE_DANCE_PAD = 5,
SDL_JOYSTICK_TYPE_GUITAR = 6,
SDL_JOYSTICK_TYPE_DRUM_KIT = 7,
SDL_JOYSTICK_TYPE_ARCADE_PAD = 8,
SDL_JOYSTICK_TYPE_THROTTLE = 9,
}
Variants§
SDL_JOYSTICK_TYPE_UNKNOWN = 0
SDL_JOYSTICK_TYPE_GAMECONTROLLER = 1
SDL_JOYSTICK_TYPE_WHEEL = 2
SDL_JOYSTICK_TYPE_ARCADE_STICK = 3
SDL_JOYSTICK_TYPE_FLIGHT_STICK = 4
SDL_JOYSTICK_TYPE_DANCE_PAD = 5
SDL_JOYSTICK_TYPE_GUITAR = 6
SDL_JOYSTICK_TYPE_DRUM_KIT = 7
SDL_JOYSTICK_TYPE_ARCADE_PAD = 8
SDL_JOYSTICK_TYPE_THROTTLE = 9
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 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_JoystickType
impl Hash for SDL_JoystickType
source§impl PartialEq for SDL_JoystickType
impl PartialEq for SDL_JoystickType
source§fn eq(&self, other: &SDL_JoystickType) -> bool
fn eq(&self, other: &SDL_JoystickType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 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