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

Sensor event structure (event.sensor.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
Sint32 which
 
float data [6]
 
Uint64 timestamp_us
 

Detailed Description

Sensor event structure (event.sensor.*)

Field Documentation

◆ data

float data[6]

Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData()

◆ 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

Uint32 type

◆ which

Sint32 which

The instance ID of the sensor


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