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:16:05 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit1e7be23084a6403d58daa1fcf4d425cb92d330fe (patch)
tree937253a3c052e71eb9b18fb545b66600b5dd052d /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add support for initial setup of pointer cursor (diff)
downloadefl-1e7be23084a6403d58daa1fcf4d425cb92d330fe.tar.gz
ecore-wl2: Add placeholder pointer listener structure and setup
pointer 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 9cbd165c18..5a586a4cb0 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -4,6 +4,15 @@
#include "ecore_wl2_private.h"
+static const struct wl_pointer_listener _pointer_listener =
+{
+ NULL, // pointer enter
+ NULL, // pointer leave
+ NULL, // pointer motion
+ NULL, // pointer button
+ NULL, // pointer axis
+};
+
static const struct wl_data_device_listener _data_listener =
{
NULL, // data offer
@@ -26,7 +35,7 @@ _seat_cb_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability
{
input->wl.pointer = wl_seat_get_pointer(seat);
wl_pointer_set_user_data(input->wl.pointer, input);
- /* TODO: pointer listener */
+ wl_pointer_add_listener(input->wl.pointer, &_pointer_listener, input);
if (!input->cursor.surface)
{