#[repr(C)]pub struct SDL_VirtualJoystickSensorDesc {
pub type_: SDL_SensorType,
pub rate: f32,
}Expand description
The structure that describes a virtual joystick sensor.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_VirtualJoystickDesc
Fields§
§type_: SDL_SensorType< the type of this sensor
rate: f32< the update frequency of this sensor, may be 0.0f
Trait Implementations§
Source§impl Clone for SDL_VirtualJoystickSensorDesc
impl Clone for SDL_VirtualJoystickSensorDesc
Source§fn clone(&self) -> SDL_VirtualJoystickSensorDesc
fn clone(&self) -> SDL_VirtualJoystickSensorDesc
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 moreimpl Copy for SDL_VirtualJoystickSensorDesc
Auto Trait Implementations§
impl Freeze for SDL_VirtualJoystickSensorDesc
impl RefUnwindSafe for SDL_VirtualJoystickSensorDesc
impl Send for SDL_VirtualJoystickSensorDesc
impl Sync for SDL_VirtualJoystickSensorDesc
impl Unpin for SDL_VirtualJoystickSensorDesc
impl UnsafeUnpin for SDL_VirtualJoystickSensorDesc
impl UnwindSafe for SDL_VirtualJoystickSensorDesc
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