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 | |
parent | remove pointer device (diff) | |
download | sway-609f63934ab3eb925741450aa7f78db1c11bdd37.tar.gz sway-609f63934ab3eb925741450aa7f78db1c11bdd37.tar.zst sway-609f63934ab3eb925741450aa7f78db1c11bdd37.zip |
basic keyboard
Diffstat (limited to 'include/sway')
-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 @@ | |||
1 | #include "sway/input/seat.h" | ||
2 | |||
3 | struct sway_keyboard { | ||
4 | struct sway_seat *seat; | ||
5 | struct wlr_input_device *device; | ||
6 | struct wl_list link; // sway_seat::keyboards | ||
7 | |||
8 | struct wl_listener keyboard_key; | ||
9 | struct wl_listener keyboard_modifiers; | ||
10 | }; | ||
11 | |||
12 | struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat, | ||
13 | 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 { | |||
10 | struct sway_input_manager *input; | 10 | struct sway_input_manager *input; |
11 | swayc_t *focus; | 11 | swayc_t *focus; |
12 | 12 | ||
13 | struct wl_list keyboards; | ||
14 | |||
13 | struct wl_listener focus_destroy; | 15 | struct wl_listener focus_destroy; |
14 | }; | 16 | }; |
15 | 17 | ||