mirror of
https://github.com/swaywm/sway.git
synced 2026-02-20 01:40:41 -05:00
tablet: add tablet tool scroll support
This commit is contained in:
parent
2e951163c5
commit
69ffa4437c
6 changed files with 85 additions and 1 deletions
|
|
@ -63,6 +63,7 @@ struct sway_cursor {
|
|||
struct wl_listener tool_tip;
|
||||
struct wl_listener tool_proximity;
|
||||
struct wl_listener tool_button;
|
||||
struct wl_listener tool_axis_scroll;
|
||||
bool simulating_pointer_from_tool_tip;
|
||||
bool simulating_pointer_from_tool_button;
|
||||
uint32_t tool_buttons;
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ struct sway_seatop_impl {
|
|||
struct wlr_touch_cancel_event *event);
|
||||
void (*tablet_tool_motion)(struct sway_seat *seat,
|
||||
struct sway_tablet_tool *tool, uint32_t time_msec);
|
||||
void (*tablet_tool_axis_scroll)(struct sway_seat *seat,
|
||||
struct sway_tablet_tool *tool, struct wlr_tablet_tool_axis_scroll_event *event);
|
||||
void (*tablet_tool_tip)(struct sway_seat *seat, struct sway_tablet_tool *tool,
|
||||
uint32_t time_msec, enum wlr_tablet_tool_tip_state state);
|
||||
void (*end)(struct sway_seat *seat);
|
||||
|
|
@ -299,6 +301,10 @@ void seatop_pointer_motion(struct sway_seat *seat, uint32_t time_msec);
|
|||
void seatop_pointer_axis(struct sway_seat *seat,
|
||||
struct wlr_pointer_axis_event *event);
|
||||
|
||||
void seatop_tablet_tool_axis_scroll(struct sway_seat *seat,
|
||||
struct sway_tablet_tool *tool,
|
||||
struct wlr_tablet_tool_axis_scroll_event *event);
|
||||
|
||||
void seatop_tablet_tool_tip(struct sway_seat *seat,
|
||||
struct sway_tablet_tool *tool, uint32_t time_msec,
|
||||
enum wlr_tablet_tool_tip_state state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue