diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-10 13:59:04 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-10 15:01:09 -0500 |
commit | 609f63934ab3eb925741450aa7f78db1c11bdd37 (patch) | |
tree | dec4a8477166fda0557589fdeec5a30a2ccc025a /include/sway/input | |
parent | 6339c4f161a80cc00a8e57f402ca45c5dbc86937 (diff) | |
download | sway-609f63934ab3eb925741450aa7f78db1c11bdd37.tar.xz |
basic keyboard
Diffstat (limited to 'include/sway/input')
-rw-r--r-- | include/sway/input/keyboard.h | 13 | ||||
-rw-r--r-- | include/sway/input/seat.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h new file mode 100644 index 00000000..2e04065c --- /dev/null +++ b/include/sway/input/keyboard.h @@ -0,0 +1,13 @@ +#include "sway/input/seat.h" + +struct sway_keyboard { + struct sway_seat *seat; + struct wlr_input_device *device; + struct wl_list link; // sway_seat::keyboards + + struct wl_listener keyboard_key; + struct wl_listener keyboard_modifiers; +}; + +struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat, + struct wlr_input_device *device); diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 964c0f7b..a0c6ab07 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -10,6 +10,8 @@ struct sway_seat { struct sway_input_manager *input; swayc_t *focus; + struct wl_list keyboards; + struct wl_listener focus_destroy; }; |