mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
input: add drawing tablet setup and event listeners
Co-authored-by: Consolatis <35009135+Consolatis@users.noreply.github.com>
This commit is contained in:
parent
58e9724007
commit
2b96799a05
3 changed files with 141 additions and 0 deletions
25
include/input/drawing_tablet.h
Normal file
25
include/input/drawing_tablet.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_DRAWING_TABLET_H
|
||||
#define LABWC_DRAWING_TABLET_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
struct seat;
|
||||
struct wlr_device;
|
||||
struct wlr_input_device;
|
||||
|
||||
struct drawing_tablet {
|
||||
struct seat *seat;
|
||||
struct wlr_tablet *tablet;
|
||||
double x, y;
|
||||
struct {
|
||||
struct wl_listener axis;
|
||||
struct wl_listener tip;
|
||||
struct wl_listener button;
|
||||
struct wl_listener destroy;
|
||||
// no interest in proximity events
|
||||
} handlers;
|
||||
};
|
||||
|
||||
void drawing_tablet_setup_handlers(struct seat *seat, struct wlr_input_device *wlr_input_device);
|
||||
|
||||
#endif /* LABWC_DRAWING_TABLET_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue