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

43 lines
462 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 button;
MouseEventType type;
double x;
double y;
};
}
#endif