3dphotoshoot
annotate src/android/sensordef.h @ 24:2712c5da2e00
getting sensor input (hack)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 16 Jun 2015 06:17:59 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@24 | 1 #ifndef SENSORDEF_H_ |
nuclear@24 | 2 #define SENSORDEF_H_ |
nuclear@24 | 3 |
nuclear@24 | 4 #include <android/sensor.h> |
nuclear@24 | 5 |
nuclear@24 | 6 /* the sensor.h header file in NDK 10d is missing a lot of sensor types, |
nuclear@24 | 7 * here is the full list. |
nuclear@24 | 8 */ |
nuclear@24 | 9 #define SENSOR_TYPE_ACCELEROMETER 1 |
nuclear@24 | 10 #define SENSOR_TYPE_MAGNETIC_FIELD 2 |
nuclear@24 | 11 #define SENSOR_TYPE_ORIENTATION 3 |
nuclear@24 | 12 #define SENSOR_TYPE_GYROSCOPE 4 |
nuclear@24 | 13 #define SENSOR_TYPE_LIGHT 5 |
nuclear@24 | 14 #define SENSOR_TYPE_PRESSURE 6 |
nuclear@24 | 15 #define SENSOR_TYPE_TEMPERATURE 7 |
nuclear@24 | 16 #define SENSOR_TYPE_PROXIMITY 8 |
nuclear@24 | 17 #define SENSOR_TYPE_GRAVITY 9 |
nuclear@24 | 18 #define SENSOR_TYPE_LINEAR_ACCELERATION 10 |
nuclear@24 | 19 #define SENSOR_TYPE_ROTATION_VECTOR 11 |
nuclear@24 | 20 #define SENSOR_TYPE_RELATIVE_HUMIDITY 12 |
nuclear@24 | 21 #define SENSOR_TYPE_AMBIENT_TEMPERATURE 13 |
nuclear@24 | 22 #define SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED 14 |
nuclear@24 | 23 #define SENSOR_TYPE_GAME_ROTATION_VECTOR 15 |
nuclear@24 | 24 #define SENSOR_TYPE_GYROSCOPE_UNCALIBRATED 16 |
nuclear@24 | 25 #define SENSOR_TYPE_SIGNIFICANT_MOTION 17 |
nuclear@24 | 26 #define SENSOR_TYPE_STEP_DETECTOR 18 |
nuclear@24 | 27 #define SENSOR_TYPE_STEP_COUNTER 19 |
nuclear@24 | 28 #define SENSOR_TYPE_GEOMAGNETIC_ROTATION 20 |
nuclear@24 | 29 #define SENSOR_TYPE_HEART_RATE 21 |
nuclear@24 | 30 #define SENSOR_TYPE_TILT_DETECTOR 22 |
nuclear@24 | 31 #define SENSOR_TYPE_WAKE_GESTURE 23 |
nuclear@24 | 32 #define SENSOR_TYPE_GLANCE_GESTURE 24 |
nuclear@24 | 33 #define SENSOR_TYPE_PICK_UP_GESTURE 25 |
nuclear@24 | 34 #define SENSOR_TYPE_WRIST_TILT_GESTURE 26 |
nuclear@24 | 35 |
nuclear@24 | 36 #ifdef __cplusplus |
nuclear@24 | 37 extern "C" { |
nuclear@24 | 38 #endif |
nuclear@24 | 39 |
nuclear@24 | 40 const char *sensor_typestr(int type); |
nuclear@24 | 41 |
nuclear@24 | 42 #ifdef __cplusplus |
nuclear@24 | 43 } |
nuclear@24 | 44 #endif |
nuclear@24 | 45 |
nuclear@24 | 46 |
nuclear@24 | 47 #endif /* SENSORDEF_H_ */ |