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

@@ -20,7 +20,7 @@ namespace lime {
};
struct HL_MouseEvent {
struct MouseEvent {
hl_type* t;
int button;
@@ -31,27 +31,12 @@ namespace lime {
double x;
double y;
};
class MouseEvent {
static ValuePointer* callback;
static ValuePointer* eventObject;
public:
static ValuePointer* callback;
static ValuePointer* eventObject;
MouseEvent ();
static void Dispatch (MouseEvent* event);
int button;
double movementX;
double movementY;
MouseEventType type;
uint32_t windowID;
double x;
double y;
MouseEvent ();
static void Dispatch (MouseEvent* event);
};