52 typedef struct _SDL_Sensor SDL_Sensor;
97 #define SDL_STANDARD_GRAVITY 9.80665f 172 extern DECLSPEC SDL_Sensor *SDLCALL
SDL_SensorOpen(
int device_index);
224 extern DECLSPEC
int SDLCALL
SDL_SensorGetData(SDL_Sensor * sensor,
float *data,
int num_values);
Definition: SDL_sensor.h:71
DECLSPEC int SDLCALL SDL_NumSensors(void)
Count the number of sensors attached to the system right now.
DECLSPEC void SDLCALL SDL_SensorClose(SDL_Sensor *sensor)
DECLSPEC SDL_SensorType SDLCALL SDL_SensorGetType(SDL_Sensor *sensor)
Get the type of a sensor.
DECLSPEC const char *SDLCALL SDL_SensorGetName(SDL_Sensor *sensor)
Get the implementation dependent name of a sensor.
Definition: SDL_sensor.h:72
DECLSPEC SDL_Sensor *SDLCALL SDL_SensorFromInstanceID(SDL_SensorID instance_id)
DECLSPEC SDL_SensorType SDLCALL SDL_SensorGetDeviceType(int device_index)
Get the type 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:69
DECLSPEC int SDLCALL SDL_SensorGetNonPortableType(SDL_Sensor *sensor)
Get the platform dependent type of a sensor.
DECLSPEC SDL_SensorID SDLCALL SDL_SensorGetDeviceInstanceID(int device_index)
Get the instance ID of a sensor.
DECLSPEC int SDLCALL SDL_SensorGetData(SDL_Sensor *sensor, float *data, int num_values)
DECLSPEC SDL_Sensor *SDLCALL SDL_SensorOpen(int device_index)
Open a sensor for use.
Definition: SDL_sensor.h:74
Sint32 SDL_SensorID
Definition: SDL_sensor.h:60
DECLSPEC void SDLCALL SDL_SensorUpdate(void)
DECLSPEC SDL_SensorID SDLCALL SDL_SensorGetInstanceID(SDL_Sensor *sensor)
Get the instance ID of a sensor.
Definition: SDL_sensor.h:73
DECLSPEC const char *SDLCALL SDL_SensorGetDeviceName(int device_index)
Get the implementation dependent name of a sensor.