aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2019-06-11 16:17:47 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-06-11 16:17:48 +0900
commite67c1f28d12dc0f1a150994835ea1d409e9fe17e (patch)
tree21e6ce21d23866a70bbafaa2673143783ba6a7ec
parenttests/efl_ui: reset active view counter structs between tests (diff)
downloadefl-e67c1f28d12dc0f1a150994835ea1d409e9fe17e.tar.gz
efl_ui_win: Added more gesture config values for gesture manager.
Summary: https://phab.enlightenment.org/T7544 This is for set config values for gesture manager. C# will use gesture manager instead of elm_gesture_layer. Those config values should import to gesture manager to recognize and handle gestures. Reviewers: segfaultxavi, stefan_schmidt, bu5hm4n, zmike, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: Jaehyun_Cho, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7962
-rw-r--r--src/lib/elementary/efl_ui_win.c34
1 files changed, 31 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 9091e56e73..2e24a00b99 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -5118,9 +5118,37 @@ _gesture_manager_config_load(Eo *obj)
eina_value_set(&val, _elm_config->glayer_double_tap_timeout);
efl_gesture_manager_config_set(gm, "glayer_double_tap_timeout", &val);
- eina_value_setup(&val, EINA_VALUE_TYPE_INT);
- eina_value_set(&val, _elm_config->glayer_tap_finger_size);
- efl_gesture_manager_config_set(gm, "glayer_tap_finger_size", &val);
+ eina_value_set(&val, _elm_config->thumbscroll_friction);
+ efl_gesture_manager_config_set(gm, "thumbscroll_friction", &val);
+
+ eina_value_set(&val, _elm_config->thumbscroll_momentum_threshold);
+ efl_gesture_manager_config_set(gm, "thumbscroll_momentum_threshold", &val);
+
+ eina_value_set(&val, _elm_config->glayer_line_min_length);
+ efl_gesture_manager_config_set(gm, "glayer_line_min_length", &val);
+
+ eina_value_set(&val, _elm_config->glayer_line_distance_tolerance);
+ efl_gesture_manager_config_set(gm, "glayer_line_distance_tolerance", &val);
+
+ eina_value_set(&val, _elm_config->glayer_line_angular_tolerance);
+ efl_gesture_manager_config_set(gm, "glayer_line_angular_tolerance", &val);
+
+ eina_value_set(&val, _elm_config->glayer_zoom_finger_factor);
+ efl_gesture_manager_config_set(gm, "glayer_zoom_finger_factor", &val);
+
+ eina_value_set(&val, _elm_config->glayer_zoom_distance_tolerance);
+ efl_gesture_manager_config_set(gm, "glayer_zoom_distance_tolerance", &val);
+
+ eina_value_setup(&val, EINA_VALUE_TYPE_UINT);
+ eina_value_set(&val, _elm_config->glayer_flick_time_limit_ms);
+ efl_gesture_manager_config_set(gm, "glayer_flick_time_limit_ms", &val);
+
+ eina_value_setup(&val, EINA_VALUE_TYPE_UCHAR);
+ eina_value_set(&val, _elm_config->glayer_continues_enable);
+ efl_gesture_manager_config_set(gm, "glayer_continues_enable", &val);
+
+ eina_value_set(&val, _elm_config->glayer_zoom_finger_enable);
+ efl_gesture_manager_config_set(gm, "glayer_zoom_finger_enable", &val);
}
static Eo *