aboutsummaryrefslogtreecommitdiff
path: root/example/shared.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-19 14:49:07 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-19 14:49:07 -0400
commitecb04afcadc96cc8d39749311e4c1c412bebf4a9 (patch)
tree71a6398ee57c2148dbdf5685477a1be917c7fa40 /example/shared.h
parente9609e9adf2883a1cf2b766adf5363f25f8f0833 (diff)
Implement tablet pads
Diffstat (limited to 'example/shared.h')
-rw-r--r--example/shared.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/example/shared.h b/example/shared.h
index df456c91..173a5719 100644
--- a/example/shared.h
+++ b/example/shared.h
@@ -61,6 +61,14 @@ struct tablet_tool_state {
void *data;
};
+struct tablet_pad_state {
+ struct compositor_state *compositor;
+ struct wlr_input_device *device;
+ struct wl_listener button;
+ struct wl_list link;
+ void *data;
+};
+
struct compositor_state {
void (*output_add_cb)(struct output_state *s);
void (*keyboard_add_cb)(struct keyboard_state *s);
@@ -91,6 +99,8 @@ struct compositor_state {
enum wlr_tablet_tool_tip_state state);
void (*tool_button_cb)(struct tablet_tool_state *s,
uint32_t button, enum wlr_button_state state);
+ void (*pad_button_cb)(struct tablet_pad_state *s,
+ uint32_t button, enum wlr_button_state state);
struct wl_display *display;
struct wl_event_loop *event_loop;
@@ -101,6 +111,7 @@ struct compositor_state {
struct wl_list pointers;
struct wl_list touch;
struct wl_list tablet_tools;
+ struct wl_list tablet_pads;
struct wl_listener input_add;
struct wl_listener input_remove;