Include button/id in mouse/touch events

This commit is contained in:
Joshua Granick
2014-06-17 18:30:42 -07:00
parent 806720647e
commit 0d0a9ea3b1
10 changed files with 51 additions and 32 deletions

View File

@@ -8,6 +8,15 @@
namespace lime {
enum MouseEventButton {
MOUSE_BUTTON_LEFT,
MOUSE_BUTTON_MIDDLE,
MOUSE_BUTTON_RIGHT
};
enum MouseEventType {
MOUSE_DOWN,
@@ -29,7 +38,7 @@ namespace lime {
static void Dispatch (MouseEvent* event);
int id;
int button;
MouseEventType type;
double x;
double y;