52 typedef struct _SDL_Sensor SDL_Sensor;
99 #define SDL_STANDARD_GRAVITY 9.80665f
138 extern DECLSPEC
void SDLCALL SDL_UnlockSensors(
void);
240 extern DECLSPEC
int SDLCALL
SDL_SensorGetData(SDL_Sensor * sensor,
float *data,
int num_values);
DECLSPEC void SDLCALL SDL_LockSensors(void)
Sint32 SDL_SensorID
Definition: SDL_sensor.h:60
DECLSPEC SDL_Sensor *SDLCALL SDL_SensorOpen(int device_index)
Open a sensor for use.
DECLSPEC SDL_SensorType SDLCALL SDL_SensorGetDeviceType(int device_index)
Get the type of a sensor.
DECLSPEC int SDLCALL SDL_SensorGetData(SDL_Sensor *sensor, float *data, int num_values)
DECLSPEC void SDLCALL SDL_SensorUpdate(void)
DECLSPEC int SDLCALL SDL_NumSensors(void)
Count the number of sensors attached to the system right now.
DECLSPEC SDL_SensorType SDLCALL SDL_SensorGetType(SDL_Sensor *sensor)
Get the type of a sensor.
DECLSPEC void SDLCALL SDL_SensorClose(SDL_Sensor *sensor)
DECLSPEC SDL_SensorID SDLCALL SDL_SensorGetDeviceInstanceID(int device_index)
Get the instance ID of a sensor.
DECLSPEC int SDLCALL SDL_SensorGetDeviceNonPortableType(int device_index)
Get the platform dependent type of a sensor.
SDL_SensorType
Definition: SDL_sensor.h:70
@ SDL_SENSOR_INVALID
Definition: SDL_sensor.h:71
@ SDL_SENSOR_GYRO
Definition: SDL_sensor.h:74
@ SDL_SENSOR_UNKNOWN
Definition: SDL_sensor.h:72
@ SDL_SENSOR_ACCEL
Definition: SDL_sensor.h:73
DECLSPEC SDL_SensorID SDLCALL SDL_SensorGetInstanceID(SDL_Sensor *sensor)
Get the instance ID of a sensor.
DECLSPEC int SDLCALL SDL_SensorGetNonPortableType(SDL_Sensor *sensor)
Get the platform dependent type of a sensor.
DECLSPEC SDL_Sensor *SDLCALL SDL_SensorFromInstanceID(SDL_SensorID instance_id)
DECLSPEC const char *SDLCALL SDL_SensorGetDeviceName(int device_index)
Get the implementation dependent name of a sensor.
DECLSPEC const char *SDLCALL SDL_SensorGetName(SDL_Sensor *sensor)
Get the implementation dependent name of a sensor.