keyboard translate keysyms

This commit is contained in:
Tony Crisci 2017-12-27 13:20:28 -05:00
parent ba69f06695
commit eea80e7276
2 changed files with 149 additions and 3 deletions

View file

@ -3,6 +3,8 @@
#include "sway/input/seat.h"
#define SWAY_KEYBOARD_PRESSED_KEYSYMS_CAP 32
struct sway_keyboard {
struct sway_seat_device *seat_device;
@ -10,6 +12,9 @@ struct sway_keyboard {
struct wl_listener keyboard_key;
struct wl_listener keyboard_modifiers;
xkb_keysym_t pressed_keysyms_translated[SWAY_KEYBOARD_PRESSED_KEYSYMS_CAP];
xkb_keysym_t pressed_keysyms_raw[SWAY_KEYBOARD_PRESSED_KEYSYMS_CAP];
};
struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat,