diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-03 06:18:20 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-11-03 06:21:24 -0400 |
commit | 9bd0f47efd9a0c851d1715f3b9427b5f51b6d8a3 (patch) | |
tree | b27d711b352db6151651694d7ec236e5d3cdf545 /include | |
parent | 447c561d1588226fd6aeb6668c7adb352cb77725 (diff) |
rootston: refactor keyboard
Diffstat (limited to 'include')
-rw-r--r-- | include/rootston/keyboard.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/rootston/keyboard.h b/include/rootston/keyboard.h index 33017b56..f4acc0aa 100644 --- a/include/rootston/keyboard.h +++ b/include/rootston/keyboard.h @@ -16,7 +16,13 @@ struct roots_keyboard { xkb_keysym_t pressed_keysyms[ROOTS_KEYBOARD_PRESSED_KEYSYMS_CAP]; }; -void keyboard_add(struct wlr_input_device *device, struct roots_input *input); -void keyboard_remove(struct wlr_input_device *device, struct roots_input *input); +struct roots_keyboard *roots_keyboard_create(struct wlr_input_device *device, + struct roots_input *input); +void roots_keyboard_destroy(struct wlr_input_device *device, struct roots_input *input); + +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 |