aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-09-24 10:29:43 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commitdf670ae859737e3457abfe8e374edb278e6092e2 (patch)
tree50253a175fae2e17894729254b47a8530851afb9 /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add support for double/triple click in mouse events (diff)
downloadefl-df670ae859737e3457abfe8e374edb278e6092e2.tar.gz
ecore-wl2: Finish up touch support. Record touch motion coordinates
into input->pointer. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 4a802a5ab9..bec665de70 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -899,6 +899,9 @@ _touch_cb_up(void *data, struct wl_touch *touch EINA_UNUSED, unsigned int serial
if (!input) return;
if (!input->focus.touch) return;
+ input->timestamp = timestamp;
+ input->display->serial = serial;
+
_ecore_wl2_input_mouse_up_send(input, input->focus.touch, id,
BTN_LEFT, timestamp);
@@ -915,6 +918,10 @@ _touch_cb_motion(void *data, struct wl_touch *touch EINA_UNUSED, unsigned int ti
if (!input) return;
if (!input->focus.touch) return;
+ input->timestamp = timestamp;
+ input->pointer.sx = wl_fixed_to_int(x);
+ input->pointer.sy = wl_fixed_to_int(y);
+
_ecore_wl2_input_mouse_move_send(input, input->focus.touch, id);
}