aboutsummaryrefslogtreecommitdiff
path: root/examples/tablet.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-09 15:16:04 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 18:16:14 +0000
commitd1f543a9d87f354e5ad8f942933dba3edb54ffed (patch)
treef173e1ecb594a223e69d2f4b7196d3c6f56aabc1 /examples/tablet.c
parent13d7fa2f03452ef5b1f34cdf7847476052532178 (diff)
types/wlr_tablet_pad: uniformize events name
Diffstat (limited to 'examples/tablet.c')
-rw-r--r--examples/tablet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tablet.c b/examples/tablet.c
index 05fbc773..9903bbf1 100644
--- a/examples/tablet.c
+++ b/examples/tablet.c
@@ -185,7 +185,7 @@ static void tablet_tool_button_notify(struct wl_listener *listener, void *data)
static void tablet_pad_button_notify(struct wl_listener *listener, void *data) {
struct tablet_pad_state *pstate = wl_container_of(listener, pstate, button);
- struct wlr_event_tablet_pad_button *event = data;
+ struct wlr_tablet_pad_button_event *event = data;
struct sample_state *sample = pstate->sample;
float default_color[4] = { 0.5, 0.5, 0.5, 1.0 };
if (event->state == WLR_BUTTON_RELEASED) {
@@ -203,7 +203,7 @@ static void tablet_pad_button_notify(struct wl_listener *listener, void *data) {
static void tablet_pad_ring_notify(struct wl_listener *listener, void *data) {
struct tablet_pad_state *pstate = wl_container_of(listener, pstate, ring);
- struct wlr_event_tablet_pad_ring *event = data;
+ struct wlr_tablet_pad_ring_event *event = data;
struct sample_state *sample = pstate->sample;
if (event->position != -1) {
sample->ring = -(event->position * (M_PI / 180.0));