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

62 lines
731 B
C++

#ifndef LIME_UI_MOUSE_EVENT_H
#define LIME_UI_MOUSE_EVENT_H
#include <hl.h>
#include <hx/CFFI.h>
#include <stdint.h>
namespace lime {
enum MouseEventType {
MOUSE_DOWN,
MOUSE_UP,
MOUSE_MOVE,
MOUSE_WHEEL
};
struct HL_MouseEvent {
hl_type* t;
int button;
double movementX;
double movementY;
MouseEventType type;
int windowID;
double x;
double y;
};
class MouseEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
MouseEvent ();
static void Dispatch (MouseEvent* event);
int button;
double movementX;
double movementY;
MouseEventType type;
uint32_t windowID;
double x;
double y;
};
}
#endif