mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
input: add tablet tool setup
This commit is contained in:
parent
9c219564be
commit
abfa100b38
5 changed files with 76 additions and 0 deletions
22
include/input/tablet-tool.h
Normal file
22
include/input/tablet-tool.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_TABLET_TOOL_H
|
||||
#define LABWC_TABLET_TOOL_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_tablet_v2.h>
|
||||
|
||||
struct seat;
|
||||
|
||||
struct drawing_tablet_tool {
|
||||
struct seat *seat;
|
||||
struct wlr_tablet_v2_tablet_tool *tool_v2;
|
||||
struct {
|
||||
struct wl_listener set_cursor;
|
||||
struct wl_listener destroy;
|
||||
} handlers;
|
||||
};
|
||||
|
||||
void tablet_tool_init(struct seat *seat,
|
||||
struct wlr_tablet_tool *wlr_tablet_tool);
|
||||
|
||||
#endif /* LABWC_TABLET_TOOL_H */
|
||||
|
|
@ -3,14 +3,17 @@
|
|||
#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;
|
||||
double x, y;
|
||||
struct {
|
||||
struct wl_listener proximity;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue