diff options
author | Markus Ongyerth <ongy@ongy.net> | 2018-05-17 12:22:15 +0200 |
---|---|---|
committer | Markus Ongyerth <ongy@ongy.net> | 2018-07-14 09:47:16 +0200 |
commit | 2c120114723aaaf270e3a44df958faeda91b3f5a (patch) | |
tree | e7cdfa3b3fba3404e57a0e31525338efb4a7fc20 /include/wlr | |
parent | 6a40561e4cddae0f6c3325afd96c7f38e8f649d1 (diff) |
Send all tablet tool axis events
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_tablet_v2.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_tablet_v2.h b/include/wlr/types/wlr_tablet_v2.h index 5de12ec8..3268c0b5 100644 --- a/include/wlr/types/wlr_tablet_v2.h +++ b/include/wlr/types/wlr_tablet_v2.h @@ -47,6 +47,8 @@ struct wlr_tablet_v2_tablet_tool { struct wl_listener surface_destroy; struct wl_listener client_destroy; + uint32_t down_serial; + bool is_down; uint32_t button_serial; size_t num_buttons; uint32_t pressed_buttons[WLR_TABLEt_V2_TOOL_BUTTONS_CAP]; @@ -113,12 +115,27 @@ uint32_t wlr_send_tablet_v2_tablet_tool_proximity_in( struct wlr_tablet_v2_tablet *tablet, struct wlr_surface *surface); +uint32_t wlr_send_tablet_v2_tablet_tool_down(struct wlr_tablet_v2_tablet_tool *tool); +void wlr_send_tablet_v2_tablet_tool_up(struct wlr_tablet_v2_tablet_tool *tool); + void wlr_send_tablet_v2_tablet_tool_motion( struct wlr_tablet_v2_tablet_tool *tool, double x, double y); +void wlr_send_tablet_v2_tablet_tool_pressure( + struct wlr_tablet_v2_tablet_tool *tool, uint32_t pressure); + void wlr_send_tablet_v2_tablet_tool_distance( struct wlr_tablet_v2_tablet_tool *tool, uint32_t distance); +void wlr_send_tablet_v2_tablet_tool_tilt( + struct wlr_tablet_v2_tablet_tool *tool, double x, double y); + +void wlr_send_tablet_v2_tablet_tool_rotation( + struct wlr_tablet_v2_tablet_tool *tool, double degrees); + +void wlr_send_tablet_v2_tablet_tool_slider( + struct wlr_tablet_v2_tablet_tool *tool, int32_t position); + void wlr_send_tablet_v2_tablet_tool_wheel( struct wlr_tablet_v2_tablet_tool *tool, double delta, int32_t clicks); |