added clickCount to MouseEvent files
This commit is contained in:
@@ -30,6 +30,7 @@ namespace lime {
|
||||
int windowID;
|
||||
double x;
|
||||
double y;
|
||||
int clickCount;
|
||||
|
||||
static ValuePointer* callback;
|
||||
static ValuePointer* eventObject;
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace lime {
|
||||
static int id_windowID;
|
||||
static int id_x;
|
||||
static int id_y;
|
||||
static int id_clickCount;
|
||||
static bool init = false;
|
||||
|
||||
|
||||
@@ -27,6 +28,7 @@ namespace lime {
|
||||
y = 0.0;
|
||||
movementX = 0.0;
|
||||
movementY = 0.0;
|
||||
clickCount = 0;
|
||||
|
||||
}
|
||||
|
||||
@@ -46,6 +48,7 @@ namespace lime {
|
||||
id_windowID = val_id ("windowID");
|
||||
id_x = val_id ("x");
|
||||
id_y = val_id ("y");
|
||||
id_clickCount = val_id ("clickCount");
|
||||
init = true;
|
||||
|
||||
}
|
||||
@@ -55,7 +58,7 @@ namespace lime {
|
||||
if (event->type != MOUSE_WHEEL) {
|
||||
|
||||
alloc_field (object, id_button, alloc_int (event->button));
|
||||
|
||||
alloc_field (object, id_clickCount, alloc_int (event->clickCount))
|
||||
}
|
||||
|
||||
alloc_field (object, id_movementX, alloc_float (event->movementX));
|
||||
@@ -70,6 +73,7 @@ namespace lime {
|
||||
MouseEvent* eventObject = (MouseEvent*)MouseEvent::eventObject->Get ();
|
||||
|
||||
eventObject->button = event->button;
|
||||
eventObject->clickCount = event->clickCount;
|
||||
eventObject->movementX = event->movementX;
|
||||
eventObject->movementY = event->movementY;
|
||||
eventObject->type = event->type;
|
||||
|
||||
Reference in New Issue
Block a user