This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_SensorEvent

A structure that contains sensor updates.

Data Fields

Uint32

type

SDL_SENSORUPDATE

Uint32

timestamp

In milliseconds, populated using SDL_GetTicks()

Sint32

which

The instance ID of the sensor

float[6]

data

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

SDL_EventType
SDL_SensorType
SDL_NumSensors
SDL_SensorGetDeviceName
SDL_SensorGetDeviceType
SDL_SensorGetDeviceNonPortableType
SDL_SensorGetDeviceInstanceID
SDL_SensorOpen
SDL_SensorFromInstanceID
SDL_SensorGetName
SDL_SensorGetType
SDL_SensorGetNonPortableType
SDL_SensorGetInstanceID
SDL_SensorGetData
SDL_SensorClose
SDL_SensorUpdate

CategoryStruct, CategoryEvents


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.