nuclear@24: #ifndef SENSORDEF_H_ nuclear@24: #define SENSORDEF_H_ nuclear@24: nuclear@24: #include nuclear@24: nuclear@24: /* the sensor.h header file in NDK 10d is missing a lot of sensor types, nuclear@24: * here is the full list. nuclear@24: */ nuclear@24: #define SENSOR_TYPE_ACCELEROMETER 1 nuclear@24: #define SENSOR_TYPE_MAGNETIC_FIELD 2 nuclear@24: #define SENSOR_TYPE_ORIENTATION 3 nuclear@24: #define SENSOR_TYPE_GYROSCOPE 4 nuclear@24: #define SENSOR_TYPE_LIGHT 5 nuclear@24: #define SENSOR_TYPE_PRESSURE 6 nuclear@24: #define SENSOR_TYPE_TEMPERATURE 7 nuclear@24: #define SENSOR_TYPE_PROXIMITY 8 nuclear@24: #define SENSOR_TYPE_GRAVITY 9 nuclear@24: #define SENSOR_TYPE_LINEAR_ACCELERATION 10 nuclear@24: #define SENSOR_TYPE_ROTATION_VECTOR 11 nuclear@24: #define SENSOR_TYPE_RELATIVE_HUMIDITY 12 nuclear@24: #define SENSOR_TYPE_AMBIENT_TEMPERATURE 13 nuclear@24: #define SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED 14 nuclear@24: #define SENSOR_TYPE_GAME_ROTATION_VECTOR 15 nuclear@24: #define SENSOR_TYPE_GYROSCOPE_UNCALIBRATED 16 nuclear@24: #define SENSOR_TYPE_SIGNIFICANT_MOTION 17 nuclear@24: #define SENSOR_TYPE_STEP_DETECTOR 18 nuclear@24: #define SENSOR_TYPE_STEP_COUNTER 19 nuclear@24: #define SENSOR_TYPE_GEOMAGNETIC_ROTATION 20 nuclear@24: #define SENSOR_TYPE_HEART_RATE 21 nuclear@24: #define SENSOR_TYPE_TILT_DETECTOR 22 nuclear@24: #define SENSOR_TYPE_WAKE_GESTURE 23 nuclear@24: #define SENSOR_TYPE_GLANCE_GESTURE 24 nuclear@24: #define SENSOR_TYPE_PICK_UP_GESTURE 25 nuclear@24: #define SENSOR_TYPE_WRIST_TILT_GESTURE 26 nuclear@24: nuclear@24: #ifdef __cplusplus nuclear@24: extern "C" { nuclear@24: #endif nuclear@24: nuclear@24: const char *sensor_typestr(int type); nuclear@24: nuclear@24: #ifdef __cplusplus nuclear@24: } nuclear@24: #endif nuclear@24: nuclear@24: nuclear@24: #endif /* SENSORDEF_H_ */