ecore_wayland: Initialize touch axis information 48/77648/2 accepted/tizen/common/20160707.171343 accepted/tizen/ivi/20160706.132903 accepted/tizen/mobile/20160706.132323 accepted/tizen/tv/20160706.132345 accepted/tizen/wearable/20160706.132447 submit/tizen/20160706.105121
authorJengHyun Kang <jhyuni.kang@samsung.com>
Thu, 30 Jun 2016 10:51:21 +0000 (19:51 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 5 Jul 2016 09:42:18 +0000 (02:42 -0700)
Change-Id: Icb006a8868fe9129b24334e113dea50f450e308a

src/lib/ecore_wayland/ecore_wl_input.c

index 3999d78..d8e090d 100644 (file)
@@ -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);