From: Hosang Kim Date: Fri, 14 Oct 2016 05:55:24 +0000 (+0900) Subject: ecore_wl_input: fix rotary event timestamp. X-Git-Tag: accepted/tizen/common/20161019.145824~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9bafd12ab65b84573a3031f236a18c021d7f8d9;p=platform%2Fupstream%2Fefl.git ecore_wl_input: fix rotary event timestamp. ecore_time_get()'s return value is second unit. But we need millisecond uniti of value. Signed-off-by: Hosang Kim Change-Id: Id14c430c720cea88aa837a2c98b99df32b0f2e1e --- diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c index 9f4a63c..e999feb 100644 --- a/src/lib/ecore_wayland/ecore_wl_input.c +++ b/src/lib/ecore_wayland/ecore_wl_input.c @@ -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;