forked from enlightenment/efl
ecore-input: add keysym to Ecore_Event_Key struct
currently only functional for x11, wl, drm @feature
This commit is contained in:
parent
ae6ec06991
commit
c3f3c4eba8
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue