aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-09-20 02:28:01 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commitdebc8c5aba94b21736e5c115accdd5ab7ef11031 (patch)
tree6afeb9c9cde5ac51eba289127c536a0048e5343d /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add TODO note for handling mouse wheel event (diff)
downloadefl-debc8c5aba94b21736e5c115accdd5ab7ef11031.tar.gz
ecore-wl2: Add placeholders for functions of the 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.c66
1 files changed, 60 insertions, 6 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index cbee54ec78..7226abeadf 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -129,14 +129,68 @@ static const struct wl_pointer_listener _pointer_listener =
_pointer_cb_axis,
};
+static void
+_keyboard_cb_keymap(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned int format, int fd, unsigned int size)
+{
+ Ecore_Wl2_Input *input;
+
+ input = data;
+ if (!input) return;
+}
+
+static void
+_keyboard_cb_enter(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned int serial, struct wl_surface *surface, struct wl_array *keys EINA_UNUSED)
+{
+ Ecore_Wl2_Input *input;
+
+ input = data;
+ if (!input) return;
+}
+
+static void
+_keyboard_cb_leave(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned int serial, struct wl_surface *surface)
+{
+ Ecore_Wl2_Input *input;
+
+ input = data;
+ if (!input) return;
+}
+
+static void
+_keyboard_cb_key(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned int serial, unsigned int timestamp, unsigned int keyboard, unsigned int state)
+{
+ Ecore_Wl2_Input *input;
+
+ input = data;
+ if (!input) return;
+}
+
+static void
+_keyboard_cb_modifiers(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned int serial EINA_UNUSED, unsigned int depressed, unsigned int latched, unsigned int locked, unsigned int group)
+{
+ Ecore_Wl2_Input *input;
+
+ input = data;
+ if (!input) return;
+}
+
+static void
+_keyboard_cb_repeat_setup(void *data, struct wl_keyboard *keyboard EINA_UNUSED, int32_t rate, int32_t delay)
+{
+ Ecore_Wl2_Input *input;
+
+ input = data;
+ if (!input) return;
+}
+
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
+ _keyboard_cb_keymap,
+ _keyboard_cb_enter,
+ _keyboard_cb_leave,
+ _keyboard_cb_key,
+ _keyboard_cb_modifiers,
+ _keyboard_cb_repeat_setup
};
static const struct wl_touch_listener _touch_listener =