浏览代码

Added documentation for additional Android sensors

Sam Lantinga 7 年之前
父节点
当前提交
8adadf8f0e
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      include/SDL_sensor.h

+ 7 - 1
include/SDL_sensor.h

@@ -59,7 +59,13 @@ typedef struct _SDL_Sensor SDL_Sensor;
  */
 typedef Sint32 SDL_SensorID;
 
-/* The different sensor types */
+/* The different sensors defined by SDL
+ *
+ * Additional sensors may be available, using platform dependent semanticsx
+ *
+ * Hare are the additional Android sensors:
+ * https://developer.android.com/reference/android/hardware/SensorEvent.html#values
+ */
 typedef enum
 {
     SDL_SENSOR_INVALID = -1,    /**< Returned for an invalid sensor */