Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2018-12-11 08:35:26
Size: 464
Editor: markand
Comment: Initial creation
Revision 2 as of 2018-12-11 08:39:30
Size: 1018
Editor: markand
Comment: Add related functions / enumerations
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:

== Related Enumerations ==
 .[[SDL_EventType]]
 .[[SDL_SensorType]]

== Related Functions ==
 .[[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]]

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()


CategoryStruct, CategoryEvents

None: SDL_SensorEvent (last edited 2018-12-11 08:39:30 by markand)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit