Struct fermium::events::SDL_ControllerSensorEvent
source · #[repr(C)]pub struct SDL_ControllerSensorEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub which: SDL_JoystickID,
pub sensor: i32,
pub data: [c_float; 3],
}
Expand description
Game controller sensor event structure (event.csensor.*)
Fields§
§type_: SDL_EventType
§timestamp: u32
In milliseconds, populated using SDL_GetTicks
.
which: SDL_JoystickID
The joystick instance id
sensor: i32
The type of the sensor, one of the values of SDL_SensorType
data: [c_float; 3]
Up to 3 values from the sensor, as defined in sensor
Trait Implementations§
source§impl Clone for SDL_ControllerSensorEvent
impl Clone for SDL_ControllerSensorEvent
source§fn clone(&self) -> SDL_ControllerSensorEvent
fn clone(&self) -> SDL_ControllerSensorEvent
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 Debug for SDL_ControllerSensorEvent
impl Debug for SDL_ControllerSensorEvent
source§impl Default for SDL_ControllerSensorEvent
impl Default for SDL_ControllerSensorEvent
source§fn default() -> SDL_ControllerSensorEvent
fn default() -> SDL_ControllerSensorEvent
Returns the “default value” for a type. Read more
source§impl PartialEq<SDL_ControllerSensorEvent> for SDL_ControllerSensorEvent
impl PartialEq<SDL_ControllerSensorEvent> for SDL_ControllerSensorEvent
source§fn eq(&self, other: &SDL_ControllerSensorEvent) -> bool
fn eq(&self, other: &SDL_ControllerSensorEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_ControllerSensorEvent> for SDL_ControllerSensorEvent
impl PartialOrd<SDL_ControllerSensorEvent> for SDL_ControllerSensorEvent
source§fn partial_cmp(&self, other: &SDL_ControllerSensorEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_ControllerSensorEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more