aboutsummaryrefslogtreecommitdiff
path: root/include/backend/libinput.h
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-02-24 15:30:26 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-02 18:18:05 +0000
commit0d21496e53e88a65347ae7ffab3d4a20403f838a (patch)
tree23494648a9b358723e702c70b453309a799e6c9b /include/backend/libinput.h
parentc8456086a164fd62c26fe3f3ade5f1e59d25eda0 (diff)
backend/libinput: rework tablet_pad interface
The wlr_libinput_input_device now owns its wlr_tablet_pad, instead of creating a new wlr_libinput_input_device for it.
Diffstat (limited to 'include/backend/libinput.h')
-rw-r--r--include/backend/libinput.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/backend/libinput.h b/include/backend/libinput.h
index 808da101..6579b1af 100644
--- a/include/backend/libinput.h
+++ b/include/backend/libinput.h
@@ -40,6 +40,7 @@ struct wlr_libinput_input_device {
struct wlr_touch touch;
struct wlr_tablet tablet;
struct wl_list tablet_tools; // see backend/libinput/tablet_tool.c
+ struct wlr_tablet_pad tablet_pad;
struct wl_list link;
};
@@ -125,13 +126,14 @@ void handle_tablet_tool_tip(struct libinput_event *event,
void handle_tablet_tool_button(struct libinput_event *event,
struct wlr_tablet *tablet);
-struct wlr_tablet_pad *create_libinput_tablet_pad(
- struct libinput_device *device);
+void init_device_tablet_pad(struct wlr_libinput_input_device *dev);
+struct wlr_libinput_input_device *device_from_tablet_pad(
+ struct wlr_tablet_pad *tablet_pad);
void handle_tablet_pad_button(struct libinput_event *event,
- struct libinput_device *device);
+ struct wlr_tablet_pad *tablet_pad);
void handle_tablet_pad_ring(struct libinput_event *event,
- struct libinput_device *device);
+ struct wlr_tablet_pad *tablet_pad);
void handle_tablet_pad_strip(struct libinput_event *event,
- struct libinput_device *device);
+ struct wlr_tablet_pad *tablet_pad);
#endif