ecore_wl_input: fix rotary event timestamp. 39/92239/1
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 14 Oct 2016 05:55:24 +0000 (14:55 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Fri, 14 Oct 2016 05:58:02 +0000 (14:58 +0900)
ecore_time_get()'s return value is second unit.
But we need millisecond uniti of value.

Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
Change-Id: Id14c430c720cea88aa837a2c98b99df32b0f2e1e

src/lib/ecore_wayland/ecore_wl_input.c

index 9f4a63c..e999feb 100644 (file)
@@ -2392,7 +2392,7 @@ _ecore_wl_input_device_cb_axis(void *data EINA_UNUSED, struct tizen_input_device
              e->direction = ECORE_DETENT_DIRECTION_CLOCKWISE;
            else
              e->direction = ECORE_DETENT_DIRECTION_COUNTER_CLOCKWISE;
-           e->timestamp = (unsigned int)ecore_time_get();
+           e->timestamp = (int)(ecore_time_get() * 1000.0);
            DBG("detent: dir: %d, time: %d", e->direction, e->timestamp);
            ecore_event_add(ECORE_EVENT_DETENT_ROTATE, e, _ecore_wl_input_detent_rotate_free, NULL);
            break;