summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_config.c
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2018-04-09 10:27:57 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-04-09 10:36:43 -0700
commit0088189eee8baf87070f1924a1e657164f9b2962 (patch)
treee330ede912237430f30a134dea84db1965ba0105 /src/lib/elementary/elm_config.c
parentf9fa8bfcb002cba71d182c40824a225c40d162bc (diff)
elementary: add new config value to handle tap finger size.
Summary: The tap_finger_size value of the concept is different from the finger_size value used in the past. We need a minimum value for recognize the gesture as a tap or not. Since the actual screen has different screen sizes, there is a problem that the recognition rate of tap is lowered when using the existing value(finger_size) Test Plan: elementary_test -> gesture sample. Reviewers: cedric, woohyun, Jaehyun_Cho, herb, id213sin Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5842 Reviewed-by: Cedric BAIL <cedric@osg.samsung.com> Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/elementary/elm_config.c')
-rw-r--r--src/lib/elementary/elm_config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index b2cbf99601..da29ddf0e7 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -461,6 +461,7 @@ _desc_init(void)
461 ELM_CONFIG_VAL(D, T, glayer_flick_time_limit_ms, T_INT); 461 ELM_CONFIG_VAL(D, T, glayer_flick_time_limit_ms, T_INT);
462 ELM_CONFIG_VAL(D, T, glayer_long_tap_start_timeout, T_DOUBLE); 462 ELM_CONFIG_VAL(D, T, glayer_long_tap_start_timeout, T_DOUBLE);
463 ELM_CONFIG_VAL(D, T, glayer_double_tap_timeout, T_DOUBLE); 463 ELM_CONFIG_VAL(D, T, glayer_double_tap_timeout, T_DOUBLE);
464 ELM_CONFIG_VAL(D, T, glayer_tap_finger_size, T_INT);
464 ELM_CONFIG_VAL(D, T, access_mode, T_UCHAR); 465 ELM_CONFIG_VAL(D, T, access_mode, T_UCHAR);
465 ELM_CONFIG_VAL(D, T, selection_clear_enable, T_UCHAR); 466 ELM_CONFIG_VAL(D, T, selection_clear_enable, T_UCHAR);
466 ELM_CONFIG_VAL(D, T, glayer_continues_enable, T_UCHAR); 467 ELM_CONFIG_VAL(D, T, glayer_continues_enable, T_UCHAR);
@@ -1796,6 +1797,7 @@ _config_load(void)
1796 _elm_config->glayer_long_tap_start_timeout = 1.2; /* 1.2 second to start long-tap */ 1797 _elm_config->glayer_long_tap_start_timeout = 1.2; /* 1.2 second to start long-tap */
1797 _elm_config->glayer_double_tap_timeout = 0.25; /* 0.25 seconds between 2 mouse downs of a tap. */ 1798 _elm_config->glayer_double_tap_timeout = 0.25; /* 0.25 seconds between 2 mouse downs of a tap. */
1798 _elm_config->glayer_continues_enable = EINA_TRUE; /* Continue gestures default */ 1799 _elm_config->glayer_continues_enable = EINA_TRUE; /* Continue gestures default */
1800 _elm_config->glayer_tap_finger_size = 10;
1799 _elm_config->access_mode = ELM_ACCESS_MODE_OFF; 1801 _elm_config->access_mode = ELM_ACCESS_MODE_OFF;
1800 _elm_config->selection_clear_enable = EINA_FALSE; 1802 _elm_config->selection_clear_enable = EINA_FALSE;
1801 _elm_config->week_start = 1; /* monday */ 1803 _elm_config->week_start = 1; /* monday */
@@ -1955,6 +1957,7 @@ _elm_config_reload_do(void)
1955 KEEP_VAL(glayer_flick_time_limit_ms); 1957 KEEP_VAL(glayer_flick_time_limit_ms);
1956 KEEP_VAL(glayer_long_tap_start_timeout); 1958 KEEP_VAL(glayer_long_tap_start_timeout);
1957 KEEP_VAL(glayer_double_tap_timeout); 1959 KEEP_VAL(glayer_double_tap_timeout);
1960 KEEP_VAL(glayer_tap_finger_size);
1958 KEEP_VAL(access_mode); 1961 KEEP_VAL(access_mode);
1959 KEEP_VAL(glayer_continues_enable); 1962 KEEP_VAL(glayer_continues_enable);
1960 KEEP_VAL(week_start); 1963 KEEP_VAL(week_start);
@@ -2813,6 +2816,9 @@ _env_get(void)
2813 s = getenv("ELM_POPUP_SCROLLABLE"); 2816 s = getenv("ELM_POPUP_SCROLLABLE");
2814 if (s) _elm_config->popup_scrollable = atoi(s); 2817 if (s) _elm_config->popup_scrollable = atoi(s);
2815 2818
2819 s = getenv("ELM_GLAYER_TAP_FINGER_SIZE");
2820 if (s) _elm_config->glayer_tap_finger_size = atoi(s);
2821
2816 s = getenv("EFL_UI_DND_DRAG_ANIM_DURATION"); 2822 s = getenv("EFL_UI_DND_DRAG_ANIM_DURATION");
2817 if (s) _elm_config->drag_anim_duration = _elm_atof(s); 2823 if (s) _elm_config->drag_anim_duration = _elm_atof(s);
2818} 2824}