mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
basic keyboard
This commit is contained in:
parent
6339c4f161
commit
609f63934a
5 changed files with 87 additions and 1 deletions
13
include/sway/input/keyboard.h
Normal file
13
include/sway/input/keyboard.h
Normal file
|
|
@ -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);
|
||||
|
|
@ -10,6 +10,8 @@ struct sway_seat {
|
|||
struct sway_input_manager *input;
|
||||
swayc_t *focus;
|
||||
|
||||
struct wl_list keyboards;
|
||||
|
||||
struct wl_listener focus_destroy;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue