[glayer] configure double tap timeout and distance
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 21 May 2013 07:27:32 +0000 (16:27 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 05:01:38 +0000 (14:01 +0900)
Change-Id: I6bcbec6d3a2c95c90cb98ce3958404df902adec9

config/desktop/base.src
config/illume/base.src
config/mobile/base.src
config/standard/base.src
src/lib/elm_gesture_layer.c

index 8f09b88..59a11cc 100644 (file)
@@ -57,6 +57,7 @@ group "Elm_Config" struct {
   value "glayer_line_angular_tolerance" double: 0.34906585; /* Represents 20 DEG */
   value "glayer_flick_time_limit_ms" uint: 60; /* 60 ms to finish flick */
   value "glayer_long_tap_start_timeout" double: 1.2; /* 1.2 sec to start long-tap */
+  value "glayer_double_tap_timeout" double: 0.25; /* Timeout between two mouse downs when doing double click (and more). */
   value "glayer_continues_enable" uchar: 1;          /* Continues gesture enabled */
   value "week_start" int: 1;
   value "weekend_start" int: 6;
index 99249dc..cd51eab 100644 (file)
@@ -58,6 +58,7 @@ group "Elm_Config" struct {
   value "glayer_line_angular_tolerance" double: 20.0
   value "glayer_flick_time_limit_ms" uint: 100; /* ms to finish flick */
   value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start long-tap */
+  value "glayer_double_tap_timeout" double: 0.25; /* Timeout between two mouse downs when doing double click (and more). */
   value "glayer_continues_enable" uchar: 1;          /* Continues gesture enabled */
   value "week_start" int: 1;
   value "weekend_start" int: 6;
index 3a29cbb..295b52e 100644 (file)
@@ -58,6 +58,7 @@ group "Elm_Config" struct {
   value "glayer_line_angular_tolerance" double: 0.34906585; /* Represents 20 DEG */
   value "glayer_flick_time_limit_ms" uint: 250; /* 250 ms to finish flick */
   value "glayer_long_tap_start_timeout" double: 1.2; /* 1.2 sec to start long-tap */
+  value "glayer_double_tap_timeout" double: 0.33; /* Timeout between two mouse downs when doing double click (and more). */
   value "glayer_continues_enable" uchar: 1;          /* Continues gesture enabled */
   value "week_start" int: 1;
   value "weekend_start" int: 6;
index 0c20e3c..f54a612 100644 (file)
@@ -59,6 +59,7 @@ group "Elm_Config" struct {
   value "glayer_line_angular_tolerance" double: 20.0;
   value "glayer_flick_time_limit_ms" uint: 120; /* ms to finish flick */
   value "glayer_long_tap_start_timeout" double: 1.2; /* sec to start long-tap */
+  value "glayer_double_tap_timeout" double: 0.25; /* Timeout between two mouse downs when doing double click (and more). */
   value "glayer_continues_enable" uchar: 1;          /* Continues gesture enabled */
   value "week_start" int: 1;
   value "weekend_start" int: 6;
index 17e9ebf..dbdbabf 100644 (file)
@@ -1369,7 +1369,9 @@ _inside(Evas_Coord xx1,
         Evas_Coord xx2,
         Evas_Coord yy2)
 {
-   int w = elm_config_finger_size_get() >> 1; /* Finger size devided by 2 */
+   int w = elm_config_finger_size_get();
+   /* Tizen only: comment out below, TODO: make configuable */
+   //int w = elm_config_finger_size_get();>> 1; /* Finger size devided by 2 */
 
    if (xx1 < (xx2 - w))
      return EINA_FALSE;