Cleanup event types

This commit is contained in:
Joshua Granick
2018-06-19 11:37:12 -07:00
parent 3491c5cf9c
commit 8e91009bc4
31 changed files with 160 additions and 329 deletions

View File

@@ -16,7 +16,7 @@ namespace lime {
};
struct HL_SensorEvent {
struct SensorEvent {
hl_type* t;
int id;
@@ -25,26 +25,12 @@ namespace lime {
double z;
SensorEventType type;
};
class SensorEvent {
static ValuePointer* callback;
static ValuePointer* eventObject;
public:
static ValuePointer* callback;
static ValuePointer* eventObject;
SensorEvent ();
static void Dispatch (SensorEvent* event);
int id;
SensorEventType type;
double x;
double y;
double z;
SensorEvent ();
static void Dispatch (SensorEvent* event);
};