My Project
Loading...
Searching...
No Matches
SDL_ControllerSensorEvent Struct Reference

Game controller sensor event structure (event.csensor.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
SDL_JoystickID which
 
Sint32 sensor
 
float data [3]
 
Uint64 timestamp_us
 

Detailed Description

Game controller sensor event structure (event.csensor.*)

Field Documentation

◆ data

float data[3]

Up to 3 values from the sensor, as defined in SDL_sensor.h

◆ sensor

Sint32 sensor

The type of the sensor, one of the values of SDL_SensorType

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ timestamp_us

Uint64 timestamp_us

The timestamp of the sensor reading in microseconds, if the hardware provides this information.

◆ type

◆ which

The joystick instance id


The documentation for this struct was generated from the following file: