Files
lime/project/include/ui/KeyEvent.h
Apprentice-Alchemist 892d4612c4 Close #1516.
Fixe an inconcistency between the C and haxe sides of the OpenGL bindings.
2022-04-28 19:42:34 +02:00

42 lines
458 B
C++

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