aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-04 09:47:36 -0500
committerGitHub <noreply@github.com>2018-01-04 09:47:36 -0500
commit91313d3847263f3a7cd2a576b333fb4a40d5a2c5 (patch)
tree667f3438ddf84d70d21f3efecfb68ccc902d835b /include
parentbc7011db3c9298a6cdc9ab622c18450ba184973a (diff)
parentb01a53abfb883f8767090415f1ec37b295b35146 (diff)
Merge pull request #1539 from acrisci/bindings
Bindings
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h3
-rw-r--r--include/sway/input/keyboard.h8
2 files changed, 10 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index eecdde3a..405092e3 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -46,7 +46,8 @@ struct sway_mouse_binding {
*/
struct sway_mode {
char *name;
- list_t *bindings;
+ list_t *keysym_bindings;
+ list_t *keycode_bindings;
};
/**
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h
index d9251f4c..8ec3eb35 100644
--- a/include/sway/input/keyboard.h
+++ b/include/sway/input/keyboard.h
@@ -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,12 @@ struct sway_keyboard {
struct wl_listener keyboard_key;
struct wl_listener keyboard_modifiers;
+
+ xkb_keysym_t pressed_keysyms_translated[SWAY_KEYBOARD_PRESSED_KEYSYMS_CAP];
+ uint32_t modifiers_translated;
+
+ xkb_keysym_t pressed_keysyms_raw[SWAY_KEYBOARD_PRESSED_KEYSYMS_CAP];
+ uint32_t modifiers_raw;
};
struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat,