aboutsummaryrefslogtreecommitdiff
path: root/example/shared.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-13 12:31:24 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-13 12:31:24 -0400
commit8f284ec0b23953ccc274291eeb612d782d391b07 (patch)
tree63fa9bc4f7136bb7b95c1658fd42506467221313 /example/shared.h
parent2f9fd72fdcf9249ed16bcc029a86e734ae1487a1 (diff)
Demonstrate pointer button event in example
Diffstat (limited to 'example/shared.h')
-rw-r--r--example/shared.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/shared.h b/example/shared.h
index 2c093414..ca558f1c 100644
--- a/example/shared.h
+++ b/example/shared.h
@@ -47,7 +47,10 @@ struct compositor_state {
void (*keyboard_remove_cb)(struct keyboard_state *s);
void (*keyboard_key_cb)(struct keyboard_state *s, xkb_keysym_t sym,
enum wlr_key_state key_state);
- void (*pointer_motion_cb)(struct pointer_state *s, double d_x, double d_y);
+ void (*pointer_motion_cb)(struct pointer_state *s,
+ double d_x, double d_y);
+ void (*pointer_button_cb)(struct pointer_state *s,
+ uint32_t button, enum wlr_button_state state);
struct wl_display *display;
struct wl_event_loop *event_loop;