mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-11-28 07:00:03 -05:00
input: add seat and cursor implementations
This commit is contained in:
parent
0489045405
commit
b4f832d501
5 changed files with 298 additions and 0 deletions
21
input/seat.h
Normal file
21
input/seat.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef CG_SEAT_H
|
||||
#define CG_SEAT_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
|
||||
#include "cursor.h"
|
||||
|
||||
struct cg_seat {
|
||||
struct wlr_seat *wlr_seat;
|
||||
struct wl_listener seat_destroy;
|
||||
|
||||
struct cg_cursor *cursor;
|
||||
|
||||
struct wl_list pointers; // cg_pointer::link
|
||||
};
|
||||
|
||||
void cage_seat_init(struct cg_seat *seat, struct wlr_seat *wlr_seat, struct cg_cursor *cursor);
|
||||
void cage_seat_fini(struct cg_seat *seat);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue