Files
lime/project/include/ui/KeyEvent.h
2018-06-09 08:28:49 -07:00

55 lines
628 B
C++

#ifndef LIME_UI_KEY_EVENT_H
#define LIME_UI_KEY_EVENT_H
#include <hl.h>
#include <hx/CFFI.h>
#include <system/ValuePointer.h>
#include <stdint.h>
namespace lime {
enum KeyEventType {
KEY_DOWN,
KEY_UP
};
struct HL_KeyEvent {
hl_type* t;
int keyCode;
int modifier;
KeyEventType type;
int windowID;
};
class KeyEvent {
public:
static ValuePointer* callback;
static ValuePointer* eventObject;
KeyEvent ();
static void Dispatch (KeyEvent* event);
double keyCode;
uint16_t modifier;
KeyEventType type;
uint32_t windowID;
};
}
#endif