mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
keyboard translate keysyms
This commit is contained in:
parent
ba69f06695
commit
eea80e7276
2 changed files with 149 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue