Files
lime/project/include/app/ApplicationEvent.h
2018-06-11 13:10:17 -07:00

49 lines
591 B
C++

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