Add keyboard state to rootston

This commit is contained in:
emersion 2017-10-02 12:12:06 +02:00
parent fa7013ac23
commit ab6c1f88e6
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 77 additions and 15 deletions

View file

@ -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 {