3dphotoshoot

view 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
line source
1 #ifndef SENSORDEF_H_
2 #define SENSORDEF_H_
4 #include <android/sensor.h>
6 /* the sensor.h header file in NDK 10d is missing a lot of sensor types,
7 * here is the full list.
8 */
9 #define SENSOR_TYPE_ACCELEROMETER 1
10 #define SENSOR_TYPE_MAGNETIC_FIELD 2
11 #define SENSOR_TYPE_ORIENTATION 3
12 #define SENSOR_TYPE_GYROSCOPE 4
13 #define SENSOR_TYPE_LIGHT 5
14 #define SENSOR_TYPE_PRESSURE 6
15 #define SENSOR_TYPE_TEMPERATURE 7
16 #define SENSOR_TYPE_PROXIMITY 8
17 #define SENSOR_TYPE_GRAVITY 9
18 #define SENSOR_TYPE_LINEAR_ACCELERATION 10
19 #define SENSOR_TYPE_ROTATION_VECTOR 11
20 #define SENSOR_TYPE_RELATIVE_HUMIDITY 12
21 #define SENSOR_TYPE_AMBIENT_TEMPERATURE 13
22 #define SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED 14
23 #define SENSOR_TYPE_GAME_ROTATION_VECTOR 15
24 #define SENSOR_TYPE_GYROSCOPE_UNCALIBRATED 16
25 #define SENSOR_TYPE_SIGNIFICANT_MOTION 17
26 #define SENSOR_TYPE_STEP_DETECTOR 18
27 #define SENSOR_TYPE_STEP_COUNTER 19
28 #define SENSOR_TYPE_GEOMAGNETIC_ROTATION 20
29 #define SENSOR_TYPE_HEART_RATE 21
30 #define SENSOR_TYPE_TILT_DETECTOR 22
31 #define SENSOR_TYPE_WAKE_GESTURE 23
32 #define SENSOR_TYPE_GLANCE_GESTURE 24
33 #define SENSOR_TYPE_PICK_UP_GESTURE 25
34 #define SENSOR_TYPE_WRIST_TILT_GESTURE 26
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
40 const char *sensor_typestr(int type);
42 #ifdef __cplusplus
43 }
44 #endif
47 #endif /* SENSORDEF_H_ */