if (!ev)
return;
+ if (_finger_pressed[0] == false)
+ return;
+
/* Current touch point info */
const touch_point tp(ev->cur.canvas.x, ev->cur.canvas.y, ev->timestamp);
MAPS_LOGI("finger_event_stream::move to (%d, %d)", tp._x, tp._y);
- /*
- * The Ecore sends "move" event before "press" event
- * so we have to emulate the "press" for the sake of
- * detector simplicity
- */
- if (!_finger_pressed[0]) {
- MAPS_LOGI("finger_event_stream::tap [CORRECTION]");
- _finger_pressed[0] = true;
- _finger_down[0] = tp;
-
- /* Emulate finger press */
- _d->tap(0, tp);
- }
-
- /* It's needed to correct the touch point, when the finger moved out of
- * assigned movement threshold */
- if (!_finger_moving[0] && !_finger_moving[1]
- && finger_dragged_enough(0, tp)) {
- _d->_info._finger_down[0] = tp;
- }
-
/*
* We think that the movement happend when the finger moved out of
* some small area.
if (finger_no >= MAX_FINGERS)
return;
+ if (_finger_pressed[finger_no] == false)
+ return;
+
/* Current touch point info */
const touch_point tp(ev->cur.canvas.x, ev->cur.canvas.y, ev->timestamp);
MAPS_LOGI("finger_event_stream::multi_move to (%d, %d)", tp._x, tp._y);
- /*
- * The Ecore sends "move" event before "press" event
- * so we have to emulate the "press" for the sake of
- * detector simplicity
- */
- if (!_finger_pressed[finger_no]) {
- MAPS_LOGI("finger_event_stream::multi_tap [CORRECTION]");
- _finger_pressed[finger_no] = true;
- _finger_down[finger_no] = tp;
-
- /* Emulate finger press */
- _d->tap(finger_no, tp);
- }
-
- /* It's needed to correct the touch point, when the finger moved out of
- * assigned movement threshold */
- if (!_finger_moving[0] && !_finger_moving[1]
- && finger_dragged_enough(finger_no, tp)) {
- _d->_info._finger_down[finger_no] = tp;
- }
-
/*
* We think that the movement happend when the finger moved out of
* some small area.