41 lines
465 B
C++
41 lines
465 B
C++
#ifndef LIME_SYSTEM_SENSOR_EVENT_H
|
|
#define LIME_SYSTEM_SENSOR_EVENT_H
|
|
|
|
|
|
#include <system/CFFI.h>
|
|
#include <system/ValuePointer.h>
|
|
|
|
|
|
namespace lime {
|
|
|
|
|
|
enum SensorEventType {
|
|
|
|
SENSOR_ACCELEROMETER
|
|
|
|
};
|
|
|
|
|
|
struct SensorEvent {
|
|
|
|
hl_type* t;
|
|
int id;
|
|
double x;
|
|
double y;
|
|
double z;
|
|
SensorEventType type;
|
|
|
|
static ValuePointer* callback;
|
|
static ValuePointer* eventObject;
|
|
|
|
SensorEvent ();
|
|
|
|
static void Dispatch (SensorEvent* event);
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif |