{ "header": "SDL_sensor.h", "opaque_types": [ { "name": "SDL_Sensor" } ], "typedefs": [ { "name": "SDL_SensorID", "underlying_type": "Uint32" } ], "function_pointers": [], "c_type_aliases": [], "enums": [ { "name": "SDL_SensorType", "values": [ { "name": "SDL_SENSOR_INVALID", "value": "-1", "comment": "Returned for an invalid sensor" }, { "name": "SDL_SENSOR_UNKNOWN", "comment": "Unknown sensor type" }, { "name": "SDL_SENSOR_ACCEL", "comment": "Accelerometer" }, { "name": "SDL_SENSOR_GYRO", "comment": "Gyroscope" }, { "name": "SDL_SENSOR_ACCEL_L", "comment": "Accelerometer for left Joy-Con controller and Wii nunchuk" }, { "name": "SDL_SENSOR_GYRO_L", "comment": "Gyroscope for left Joy-Con controller" }, { "name": "SDL_SENSOR_ACCEL_R", "comment": "Accelerometer for right Joy-Con controller" }, { "name": "SDL_SENSOR_GYRO_R", "comment": "Gyroscope for right Joy-Con controller" } ] } ], "structs": [], "unions": [], "flags": [], "functions": [ { "name": "SDL_GetSensors", "return_type": "SDL_SensorID *", "parameters": [ { "name": "count", "type": "int *" } ] }, { "name": "SDL_GetSensorNameForID", "return_type": "const char *", "parameters": [ { "name": "instance_id", "type": "SDL_SensorID" } ] }, { "name": "SDL_GetSensorTypeForID", "return_type": "SDL_SensorType", "parameters": [ { "name": "instance_id", "type": "SDL_SensorID" } ] }, { "name": "SDL_GetSensorNonPortableTypeForID", "return_type": "int", "parameters": [ { "name": "instance_id", "type": "SDL_SensorID" } ] }, { "name": "SDL_OpenSensor", "return_type": "SDL_Sensor *", "parameters": [ { "name": "instance_id", "type": "SDL_SensorID" } ] }, { "name": "SDL_GetSensorFromID", "return_type": "SDL_Sensor *", "parameters": [ { "name": "instance_id", "type": "SDL_SensorID" } ] }, { "name": "SDL_GetSensorProperties", "return_type": "SDL_PropertiesID", "parameters": [ { "name": "sensor", "type": "SDL_Sensor *" } ] }, { "name": "SDL_GetSensorName", "return_type": "const char *", "parameters": [ { "name": "sensor", "type": "SDL_Sensor *" } ] }, { "name": "SDL_GetSensorType", "return_type": "SDL_SensorType", "parameters": [ { "name": "sensor", "type": "SDL_Sensor *" } ] }, { "name": "SDL_GetSensorNonPortableType", "return_type": "int", "parameters": [ { "name": "sensor", "type": "SDL_Sensor *" } ] }, { "name": "SDL_GetSensorID", "return_type": "SDL_SensorID", "parameters": [ { "name": "sensor", "type": "SDL_Sensor *" } ] }, { "name": "SDL_GetSensorData", "return_type": "bool", "parameters": [ { "name": "sensor", "type": "SDL_Sensor *" }, { "name": "data", "type": "float *" }, { "name": "num_values", "type": "int" } ] }, { "name": "SDL_CloseSensor", "return_type": "void", "parameters": [ { "name": "sensor", "type": "SDL_Sensor *" } ] }, { "name": "SDL_UpdateSensors", "return_type": "void", "parameters": [] } ] }