#ifndef SDL_syssensor_c_h_
#define SDL_syssensor_c_h_
#include "SDL_config.h"
#include "SDL_sensor.h"
#include "SDL_sensor_c.h"
struct _SDL_Sensor
{
SDL_SensorID instance_id;
char *name;
SDL_SensorType type;
int non_portable_type;
Uint64 timestamp_us;
float data[16];
struct _SDL_SensorDriver *driver;
struct sensor_hwdata *hwdata;
int ref_count;
struct _SDL_Sensor *next;
};
typedef struct _SDL_SensorDriver
{
int (*Init)(void);
int (*GetCount)(void);
void (*Detect)(void);
const char *(*GetDeviceName)(int device_index);
SDL_SensorType (*GetDeviceType)(int device_index);
int (*GetDeviceNonPortableType)(int device_index);
SDL_SensorID (*GetDeviceInstanceID)(int device_index);
int (*Open)(SDL_Sensor * sensor, int device_index);
void (*Update)(SDL_Sensor * sensor);
void (*Close)(SDL_Sensor * sensor);
void (*Quit)(void);
} SDL_SensorDriver;
extern SDL_SensorDriver SDL_ANDROID_SensorDriver;
extern SDL_SensorDriver SDL_COREMOTION_SensorDriver;
extern SDL_SensorDriver SDL_WINDOWS_SensorDriver;
extern SDL_SensorDriver SDL_DUMMY_SensorDriver;
extern SDL_SensorDriver SDL_VITA_SensorDriver;
extern SDL_SensorDriver SDL_N3DS_SensorDriver;
#endif