aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-09-10 12:19:53 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit9009367421a6715b01ce9d92ec3dc03ac4626fed (patch)
tree0a72499fdfc296be5a224b2c52542317207408c3 /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add placeholder keyboard listener structure and setup (diff)
downloadefl-9009367421a6715b01ce9d92ec3dc03ac4626fed.tar.gz
ecore-wl2: Add placeholder touch listener structure and setup touch
listener 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.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 1286c271d0..9843e8ed9f 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -23,6 +23,15 @@ static const struct wl_keyboard_listener _keyboard_listener =
NULL, // keyboard repeat setup
};
+static const struct wl_touch_listener _touch_listener =
+{
+ NULL, // touch down
+ NULL, // touch up
+ NULL, // touch motion
+ NULL, // touch frame
+ NULL, // touch cancel
+};
+
static const struct wl_data_device_listener _data_listener =
{
NULL, // data offer
@@ -76,7 +85,7 @@ _seat_cb_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability
{
input->wl.touch = wl_seat_get_touch(seat);
wl_touch_set_user_data(input->wl.touch, input);
- /* TODO: touch listener */
+ wl_touch_add_listener(input->wl.touch, &_touch_listener, input);
}
else if (!(caps & WL_SEAT_CAPABILITY_TOUCH) && (input->wl.touch))
{