devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9009367421a6715b01ce9d92ec3dc03ac4626fed

commit 9009367421a6715b01ce9d92ec3dc03ac4626fed
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Sep 10 12:19:53 2015 -0400

    ecore-wl2: Add placeholder touch listener structure and setup touch
    listener
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index 1286c27..9843e8e 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))
      {

-- 


Reply via email to