struct {
int n_taps;
Eina_Bool double_tap;
- Ecore_Event_Mouse_Button *ev_down;
+ Ecore_Event_Mouse_Button *ev_down, *ev_multi_down;
Eina_Bool drag_start;
int drag_x_delta;
int drag_y_delta;
cov->tap_n_hold_gesture_data.ev_down->multi.radius += MAGIC_NUMBER;
cov->tap_n_hold_gesture_data.drag_start = EINA_TRUE;
ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, cov->tap_n_hold_gesture_data.ev_down, NULL, NULL);
+ if (cov->tap_gesture_data.tap_type == TWO_FINGERS_GESTURE)
+ {
+ cov->tap_n_hold_gesture_data.ev_multi_down->multi.radius += MAGIC_NUMBER;
+ ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, cov->tap_n_hold_gesture_data.ev_multi_down, NULL, NULL);
+ }
}
cov->tap_n_hold_gesture_data.double_tap = EINA_FALSE;
cov->tap_gesture_data.y_org[1] = ev->root.y;
if (cov->tap_gesture_data.tap_type < TWO_FINGERS_GESTURE)
cov->tap_gesture_data.tap_type = TWO_FINGERS_GESTURE;
+ if (!(cov->tap_n_hold_gesture_data.ev_multi_down = malloc(sizeof(Ecore_Event_Mouse_Button))))
+ {
+ DEBUG("NOT ENOUGH MEMORY");
+ return ;
+ }
+ memcpy (cov->tap_n_hold_gesture_data.ev_multi_down, ev, sizeof(Ecore_Event_Mouse_Button));
}
else if (cov->tap_gesture_data.finger[2] == -1 ||
cov->tap_gesture_data.finger[2] == ev->multi.device)
}
if (cover->tap_n_hold_gesture_data.drag_start)
{
- Ecore_Event_Mouse_Button *ev_up;
+ Ecore_Event_Mouse_Button *ev_up, *ev_multi_up;
if (!(ev_up = malloc(sizeof(Ecore_Event_Mouse_Button))))
{
DEBUG("NOT ENOUGH MEMORY");
ecore_timer_del(cover->up_timer);
cover->up_timer = ecore_timer_add(0, _on_up_timeout, ev_up);
+ if (cover->tap_gesture_data.tap_type == TWO_FINGERS_GESTURE)
+ {
+ if (!(ev_multi_up = malloc(sizeof(Ecore_Event_Mouse_Button))))
+ {
+ DEBUG("NOT ENOUGH MEMORY");
+ return EINA_FALSE;
+ }
+ memcpy(ev_multi_up, ev, sizeof(Ecore_Event_Mouse_Button));
+ ev_multi_up->multi.radius += MAGIC_NUMBER;
+ ev_multi_up->multi.device = 1;
+ ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, ev_multi_up, NULL, NULL);
+ }
cover->tap_n_hold_gesture_data.drag_start = EINA_FALSE;
highlighted_object_x = -1;
highlighted_object_y = -1;