Struct sdl2_sys::SDL_ControllerSensorEvent [−][src]
#[repr(C)]pub struct SDL_ControllerSensorEvent {
pub type_: Uint32,
pub timestamp: Uint32,
pub which: SDL_JoystickID,
pub sensor: Sint32,
pub data: [f32; 3],
}
Expand description
\brief Game controller sensor event structure (event.csensor.*)
Fields
type_: Uint32
< ::SDL_CONTROLLERSENSORUPDATE
timestamp: Uint32
< In milliseconds, populated using SDL_GetTicks()
which: SDL_JoystickID
< The joystick instance id
sensor: Sint32
< The type of the sensor, one of the values of ::SDL_SensorType
data: [f32; 3]
< Up to 3 values from the sensor, as defined in SDL_sensor.h