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:18:25 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit6869782c27cabf236ad61a6c0d78772ec6f98c12 (patch)
tree6783520a1e2fbd1cc35f36b3e8786203bf376785 /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add placeholder pointer listener structure and setup (diff)
downloadefl-6869782c27cabf236ad61a6c0d78772ec6f98c12.tar.gz
ecore-wl2: Add placeholder keyboard listener structure and setup
keyboard 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.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 5a586a4cb0..1286c271d0 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -13,6 +13,16 @@ static const struct wl_pointer_listener _pointer_listener =
NULL, // pointer axis
};
+static const struct wl_keyboard_listener _keyboard_listener =
+{
+ NULL, // keyboard keymap
+ NULL, // keyboard enter
+ NULL, // keyboard leave
+ NULL, // keyboard key
+ NULL, // keyboard modifiers
+ NULL, // keyboard repeat setup
+};
+
static const struct wl_data_device_listener _data_listener =
{
NULL, // data offer
@@ -55,7 +65,7 @@ _seat_cb_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability
{
input->wl.keyboard = wl_seat_get_keyboard(seat);
wl_keyboard_set_user_data(input->wl.keyboard, input);
- /* TODO: keyboard listener */
+ wl_keyboard_add_listener(input->wl.keyboard, &_keyboard_listener, input);
}
else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && (input->wl.keyboard))
{