Files
lime/project/include/app/ApplicationEvent.h
2018-06-09 08:25:16 -07:00

49 lines
566 B
C++

#ifndef LIME_APP_APPLICATION_EVENT_H
#define LIME_APP_APPLICATION_EVENT_H
#include <hl.h>
#include <hx/CFFI.h>
namespace lime {
enum ApplicationEventType {
UPDATE,
EXIT
};
struct HL_ApplicationEvent {
hl_type* t;
int deltaTime;
ApplicationEventType type;
};
class ApplicationEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
ApplicationEvent ();
static void Dispatch (ApplicationEvent* event);
int deltaTime;
ApplicationEventType type;
};
}
#endif