ecore-input: add keysym to Ecore_Event_Key struct

currently only functional for x11, wl, drm

@feature
This commit is contained in:
Mike Blumenkrantz 2015-05-20 14:38:38 -04:00
parent ae6ec06991
commit c3f3c4eba8
5 changed files with 5 additions and 0 deletions

View File

@ -361,6 +361,7 @@ _device_handle_key(struct libinput_device *device, struct libinput_event_keyboar
e->timestamp = timestamp;
e->same_screen = 1;
e->keycode = code;
e->keysym = sym;
_device_modifiers_update(edev);

View File

@ -152,6 +152,7 @@ extern "C" {
unsigned int keycode; /**< Key scan code numeric value @since 1.10 */
void *data; /**< User data associated with an Ecore_Event_Key @since 1.10 */
unsigned int keysym; /**< Encoding of keyboard symbold @since 1.15 */
};
/**

View File

@ -827,6 +827,7 @@ _ecore_wl_input_cb_keyboard_key(void *data, struct wl_keyboard *keyboard EINA_UN
e->timestamp = timestamp;
e->modifiers = input->modifiers;
e->keycode = code;
e->keysym = sym;
if (state)
ecore_event_add(ECORE_EVENT_KEY_DOWN, e, NULL, NULL);

View File

@ -2422,6 +2422,7 @@ _ecore_xcb_event_key_press(xcb_generic_event_t *event)
e->same_screen = xevent->same_screen;
e->root_window = xevent->root;
e->keycode = keycode;
e->keysym = sym;
DBG("Sending Key Down Event: %s", e->keyname);
ecore_event_add(ECORE_EVENT_KEY_DOWN, e, NULL, NULL);

View File

@ -393,6 +393,7 @@ _ecore_key_press(int event,
e->same_screen = xevent->same_screen;
e->root_window = xevent->root;
e->keycode = xevent->keycode;
e->keysym = sym;
ecore_event_add(event, e, NULL, NULL);