#[repr(i32)]pub enum SDL_SensorType {
SDL_SENSOR_INVALID = -1,
SDL_SENSOR_UNKNOWN = 0,
SDL_SENSOR_ACCEL = 1,
SDL_SENSOR_GYRO = 2,
SDL_SENSOR_ACCEL_L = 3,
SDL_SENSOR_GYRO_L = 4,
SDL_SENSOR_ACCEL_R = 5,
SDL_SENSOR_GYRO_R = 6,
}
Variants§
SDL_SENSOR_INVALID = -1
< Returned for an invalid sensor
SDL_SENSOR_UNKNOWN = 0
< Unknown sensor type
SDL_SENSOR_ACCEL = 1
< Accelerometer
SDL_SENSOR_GYRO = 2
< Gyroscope
SDL_SENSOR_ACCEL_L = 3
< Accelerometer for left Joy-Con controller and Wii nunchuk
SDL_SENSOR_GYRO_L = 4
< Gyroscope for left Joy-Con controller
SDL_SENSOR_ACCEL_R = 5
< Accelerometer for right Joy-Con controller
SDL_SENSOR_GYRO_R = 6
< Gyroscope for right Joy-Con controller
Trait Implementations§
Source§impl Clone for SDL_SensorType
impl Clone for SDL_SensorType
Source§fn clone(&self) -> SDL_SensorType
fn clone(&self) -> SDL_SensorType
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_SensorType
impl Hash for SDL_SensorType
Source§impl PartialEq for SDL_SensorType
impl PartialEq for SDL_SensorType
impl Copy for SDL_SensorType
impl Eq for SDL_SensorType
impl StructuralPartialEq for SDL_SensorType
Auto Trait Implementations§
impl Freeze for SDL_SensorType
impl RefUnwindSafe for SDL_SensorType
impl Send for SDL_SensorType
impl Sync for SDL_SensorType
impl Unpin for SDL_SensorType
impl UnwindSafe for SDL_SensorType
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