mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
Split pad initialization from tablet initialization to avoid conflicting handler names. Also reuse 'get_mapped_button'.
21 lines
473 B
C
21 lines
473 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_TABLET_PAD_H
|
|
#define LABWC_TABLET_PAD_H
|
|
|
|
#include <wayland-server-core.h>
|
|
struct seat;
|
|
struct wlr_device;
|
|
struct wlr_input_device;
|
|
|
|
struct drawing_tablet_pad {
|
|
struct seat *seat;
|
|
struct wlr_tablet_pad *tablet;
|
|
struct {
|
|
struct wl_listener button;
|
|
struct wl_listener destroy;
|
|
} handlers;
|
|
};
|
|
|
|
void tablet_pad_init(struct seat *seat, struct wlr_input_device *wlr_input_device);
|
|
|
|
#endif /* LABWC_TABLET_PAD_H */
|