mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
It doesn't matter much since those are about the combination of tablet and tablet tool. That said, this feels slightly more natural. As a consequence we always create a tablet tool and decide indirectly via `tablet_get_coords()` and the returning surface if mouse emulation should be used or not. Now we can also add a `motion_mode` to the tablet tool which is slightly cleaner.
27 lines
662 B
C
27 lines
662 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_TABLET_H
|
|
#define LABWC_TABLET_H
|
|
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/types/wlr_tablet_v2.h>
|
|
|
|
struct seat;
|
|
struct wlr_device;
|
|
struct wlr_input_device;
|
|
|
|
struct drawing_tablet {
|
|
struct wlr_input_device *wlr_input_device;
|
|
struct seat *seat;
|
|
struct wlr_tablet *tablet;
|
|
struct wlr_tablet_v2_tablet *tablet_v2;
|
|
struct {
|
|
struct wl_listener destroy;
|
|
} handlers;
|
|
struct wl_list link; /* seat.tablets */
|
|
};
|
|
|
|
void tablet_init(struct seat *seat);
|
|
void tablet_finish(struct seat *seat);
|
|
void tablet_create(struct seat *seat, struct wlr_input_device *wlr_input_device);
|
|
|
|
#endif /* LABWC_TABLET_H */
|