Add window.id, add native EXIT event, filter window-based events and send to correct window instance

This commit is contained in:
Joshua Granick
2015-08-19 12:36:30 -07:00
parent 8a9db7a36a
commit 8768d6114f
25 changed files with 337 additions and 254 deletions

View File

@@ -0,0 +1,39 @@
#ifndef LIME_APP_APPLICATION_EVENT_H
#define LIME_APP_APPLICATION_EVENT_H
#include <hx/CFFI.h>
namespace lime {
enum ApplicationEventType {
UPDATE,
EXIT
};
class ApplicationEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
ApplicationEvent ();
static void Dispatch (ApplicationEvent* event);
int deltaTime;
ApplicationEventType type;
};
}
#endif

View File

@@ -1,38 +0,0 @@
#ifndef LIME_APP_UPDATE_EVENT_H
#define LIME_APP_UPDATE_EVENT_H
#include <hx/CFFI.h>
namespace lime {
enum UpdateEventType {
UPDATE
};
class UpdateEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
UpdateEvent ();
static void Dispatch (UpdateEvent* event);
int deltaTime;
UpdateEventType type;
};
}
#endif