Files
lime/project/include/ui/MouseEvent.h
2014-06-19 00:33:47 -07:00

43 lines
458 B
C++

#ifndef LIME_UI_MOUSE_EVENT_H
#define LIME_UI_MOUSE_EVENT_H
#include <hx/CFFI.h>
namespace lime {
enum MouseEventType {
MOUSE_DOWN,
MOUSE_UP,
MOUSE_MOVE,
MOUSE_WHEEL
};
class MouseEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
MouseEvent ();
static void Dispatch (MouseEvent* event);
int id;
MouseEventType type;
double x;
double y;
};
}
#endif