mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-09 05:34:27 -04:00
input: add keyboard group implementation
This commit is contained in:
parent
c417783088
commit
56782e4f94
5 changed files with 200 additions and 0 deletions
24
input/keyboard_group.h
Normal file
24
input/keyboard_group.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef CG_KEYBOARD_GROUP_H
|
||||
#define CG_KEYBOARD_GROUP_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/types/wlr_keyboard_group.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
|
||||
struct cg_keyboard_group {
|
||||
struct wlr_keyboard_group *wlr_keyboard_group;
|
||||
struct wlr_seat *wlr_seat;
|
||||
|
||||
struct wl_listener key;
|
||||
struct wl_listener modifiers;
|
||||
struct wl_list link; // seat::keyboard_groups
|
||||
};
|
||||
|
||||
bool cage_keyboard_group_add(struct cg_keyboard_group *group, struct wlr_input_device *wlr_input_device);
|
||||
bool cage_keyboard_group_init(struct cg_keyboard_group *group, struct wlr_input_device *wlr_input_device,
|
||||
struct wlr_seat *wlr_seat);
|
||||
void cage_keyboard_group_fini(struct cg_keyboard_group *group);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue