9#include <android/sensor.h>
11#include "tools/Vector3d.h"
33 SASensor(SSensorType type);
42 ASensor* GetASensor();
43 void SetASensor(ASensor* aSensor);
61 ASensorEventQueue* mASensorEventQueue;
62 ASensorManager* mASensorManager;
65 boost::thread mThread;
67 int mScreenOrientation;
78 static int UpdateSensorData(
int fd,
int events,
void* data);
79 ASensorEventQueue* GetASensorEventQueue();
80 DeviceOrientation GetScreenOrientation();
81 virtual int SetSensorEnable(SSensorType sensorType,
bool state);
82 virtual void Vibrate(
long millis);
83 virtual void StartVibration();
84 virtual void StopVibration();
85 virtual void VibratePattern(std::vector<int> pattern,
bool loop);
86 virtual void StartLocationService();
87 virtual void StopLocationService();
88 virtual bool GetLocation(
float &longitude,
float &latitude,
float &altitude);