diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-11 10:11:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 10:11:31 -0500 |
commit | a538ef33c1f27d5180117933bee40ecd93fbea7a (patch) | |
tree | be639c73a782ecfd680dabc31d3a4e4208cba61f /include/rootston/keyboard.h | |
parent | 78ed7f3c8983191b0b6399d4c66f5524a23f216a (diff) | |
parent | 2a9dc60f28616211370fcd48de8c75ef17282d2e (diff) |
Merge pull request #384 from acrisci/feature/multiseat
multiseat
Diffstat (limited to 'include/rootston/keyboard.h')
-rw-r--r-- | include/rootston/keyboard.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/rootston/keyboard.h b/include/rootston/keyboard.h new file mode 100644 index 00000000..51977f08 --- /dev/null +++ b/include/rootston/keyboard.h @@ -0,0 +1,32 @@ +#ifndef _ROOTSTON_KEYBOARD_H +#define _ROOTSTON_KEYBOARD_H + +#include <xkbcommon/xkbcommon.h> +#include "rootston/input.h" + +#define ROOTS_KEYBOARD_PRESSED_KEYSYMS_CAP 32 + +struct roots_keyboard { + struct roots_input *input; + struct roots_seat *seat; + struct wlr_input_device *device; + struct keyboard_config *config; + struct wl_list link; + + struct wl_listener keyboard_key; + struct wl_listener keyboard_modifiers; + + xkb_keysym_t pressed_keysyms[ROOTS_KEYBOARD_PRESSED_KEYSYMS_CAP]; +}; + +struct roots_keyboard *roots_keyboard_create(struct wlr_input_device *device, + struct roots_input *input); + +void roots_keyboard_destroy(struct roots_keyboard *keyboard); + +void roots_keyboard_handle_key(struct roots_keyboard *keyboard, + struct wlr_event_keyboard_key *event); + +void roots_keyboard_handle_modifiers(struct roots_keyboard *r_keyboard); + +#endif |