39 lines
459 B
C++
39 lines
459 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 ApplicationEvent {
|
|
|
|
hl_type* t;
|
|
int deltaTime;
|
|
ApplicationEventType type;
|
|
|
|
static ValuePointer* callback;
|
|
static ValuePointer* eventObject;
|
|
|
|
ApplicationEvent ();
|
|
|
|
static void Dispatch (ApplicationEvent* event);
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif |