devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=debc8c5aba94b21736e5c115accdd5ab7ef11031
commit debc8c5aba94b21736e5c115accdd5ab7ef11031 Author: Chris Michael <[email protected]> Date: Sun Sep 20 02:28:01 2015 -0400 ecore-wl2: Add placeholders for functions of the keyboard listener Signed-off-by: Chris Michael <[email protected]> --- src/lib/ecore_wl2/ecore_wl2_input.c | 66 +++++++++++++++++++++++++++++++++---- 1 file 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 cbee54e..7226abe 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 = --
