input: add pointer implementation

This commit is contained in:
Jente Hidskes 2020-07-08 21:44:50 +02:00
parent b4f832d501
commit c417783088
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
5 changed files with 107 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#define CG_SEAT_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_seat.h>
#include "cursor.h"
@ -15,6 +16,8 @@ struct cg_seat {
struct wl_list pointers; // cg_pointer::link
};
void cage_seat_add_new_pointer(struct cg_seat *seat, struct wlr_input_device *device);
void cage_seat_update_capabilities(struct cg_seat *seat);
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);