mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-31 22:25:27 -04:00
input: add pointer implementation
This commit is contained in:
parent
b4f832d501
commit
c417783088
5 changed files with 107 additions and 0 deletions
17
input/pointer.h
Normal file
17
input/pointer.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef CG_POINTER_H
|
||||
#define CG_POINTER_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_input_device.h>
|
||||
|
||||
struct cg_pointer {
|
||||
struct wl_list link; // seat::pointers
|
||||
struct wlr_input_device *device;
|
||||
|
||||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
void cage_pointer_init(struct cg_pointer *pointer, struct wlr_input_device *device);
|
||||
void cage_pointer_fini(struct cg_pointer *pointer);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue