Gesture type; // Type of recognized gesture
int x_begin, x_end; // (x,y) coordinates when gesture begin
int y_begin, y_end; // (x,y) coordinates when gesture ends
+ int state; // 0 - gesture begins, 1 - continues, 2 - ended
} Gesture_Info;
if(!gesture_name)
return GESTURES_COUNT;
- ERROR("Dbus incoming gesture: %s", gesture_name);
+ DEBUG("Dbus incoming gesture: %s", gesture_name);
if(!strcmp("OneFingerHover", gesture_name))
return ONE_FINGER_HOVER;
static void on_gesture_detected(void *context EINA_UNUSED, const Eldbus_Message *msg)
{
const char *gesture_name;
- int x_s, y_s, x_e, y_e;
+ int x_s, y_s, x_e, y_e, state;
- if(!eldbus_message_arguments_get(msg, "siiii", &gesture_name, &x_s, &y_s, &x_e, &y_e))
+ if(!eldbus_message_arguments_get(msg, "siiiiu", &gesture_name, &x_s, &y_s, &x_e, &y_e, &state))
ERROR("error geting arguments on_gesture_detected");
Gesture_Info g;
g.y_begin = y_s;
g.x_end = x_e;
g.y_end = y_e;
+ g.state = state;
if(user_cb)
user_cb(user_data, &g);