summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-02-01 20:53:19 -0500
committerDudemanguy <random342@airmail.cc>2024-02-04 02:14:11 +0000
commitb3edb46fd99ec8598c2595d5fe44bb686f613ac4 (patch)
treee440570185a7de4f371720765b70ca0402bfd52e /video/out/wayland_common.h
parentf95b7146d74287a00f10a8b0762634461a6aa215 (diff)
downloadmpv-b3edb46fd99ec8598c2595d5fe44bb686f613ac4.tar.bz2
mpv-b3edb46fd99ec8598c2595d5fe44bb686f613ac4.tar.xz
wayland_common: prefer axis_value120 if supported
Prefer axis_value120 for high resolution scrolling if supported, which matches the existing win32 behavior.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 25e973dcfd..9928cc83cc 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -151,6 +151,11 @@ struct vo_wayland_state {
uint32_t keyboard_code;
int mpkey;
int mpmod;
+ double axis_value_vertical;
+ int32_t axis_value120_vertical;
+ double axis_value_horizontal;
+ int32_t axis_value120_horizontal;
+ bool axis_value120_scroll;
/* DND */
struct wl_data_device *dnd_ddev;