From b0c5bfe39e6c248f5e9774f0b74897372232a993 Mon Sep 17 00:00:00 2001 From: JengHyun Kang Date: Thu, 30 Jun 2016 19:51:21 +0900 Subject: [PATCH] ecore_wayland: Initialize touch axis information Change-Id: Icb006a8868fe9129b24334e113dea50f450e308a --- src/lib/ecore_wayland/ecore_wl_input.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c index 3999d78..d8e090d 100644 --- a/src/lib/ecore_wayland/ecore_wl_input.c +++ b/src/lib/ecore_wayland/ecore_wl_input.c @@ -458,6 +458,7 @@ void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id) { Ecore_Wl_Input *input; + int i; LOGFN(__FILE__, __LINE__, __FUNCTION__); @@ -472,6 +473,14 @@ _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id) input->repeat.rate = 0.025; input->repeat.delay = 0.4; + for (i = 0; i < ECORE_WL_TOUCH_MAX; i++) + { + input->touch_axis[i].radius_x = 1.0; + input->touch_axis[i].radius_y = 1.0; + input->touch_axis[i].pressure = 1.0; + input->touch_axis[i].angle = 0.0; + } + if (ewd->wl.shm) _ecore_wl_input_setup(input); -- 2.7.4