aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-02 12:12:06 +0200
committeremersion <contact@emersion.fr>2017-10-03 08:46:09 +0200
commitab6c1f88e6314ae0d56d5dfffc121a824175e7fd (patch)
treedf36c58e34f216401379a62b3123395645610b91 /include/rootston
parentfa7013ac2309adc02e65ff88db072430394b62fd (diff)
Add keyboard state to rootston
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/input.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h
index ecd53f3b..a9cc2014 100644
--- a/include/rootston/input.h
+++ b/include/rootston/input.h
@@ -10,11 +10,22 @@
#include "rootston/view.h"
#include "rootston/server.h"
+#define ROOTS_KEYBOARD_PRESSED_KEYS_CAP 32
+
+struct roots_keyboard_key {
+ uint32_t keycode;
+
+ const xkb_keysym_t *syms;
+ size_t syms_len;
+};
+
struct roots_keyboard {
struct roots_input *input;
struct wlr_input_device *device;
struct wl_listener key;
struct wl_list link;
+
+ struct roots_keyboard_key pressed_keys[ROOTS_KEYBOARD_PRESSED_KEYS_CAP];
};
struct roots_pointer {