summaryrefslogtreecommitdiffstats
path: root/player/lua/osc.lua
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2023-09-11 12:37:50 +0530
committerNiklas Haas <github-daiK1o@haasn.dev>2023-09-17 00:03:45 +0200
commit181eddc80e087ebdde775c1c4e2e758a150f440c (patch)
tree4d18ead782ab73c66f2bbc57317477d5b44ee1bb /player/lua/osc.lua
parentbc351809333702b2243d24febf1aa14573bc2f58 (diff)
downloadmpv-181eddc80e087ebdde775c1c4e2e758a150f440c.tar.bz2
mpv-181eddc80e087ebdde775c1c4e2e758a150f440c.tar.xz
osc: add scrolling to audio/sub buttons
Consistent with other osc buttons now
Diffstat (limited to 'player/lua/osc.lua')
-rw-r--r--player/lua/osc.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 98e8558a15..0a9965b269 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1938,6 +1938,10 @@ function osc_init()
function () set_track("audio", -1) end
ne.eventresponder["shift+mbtn_left_down"] =
function () show_message(get_tracklist("audio"), 2) end
+ ne.eventresponder["wheel_down_press"] =
+ function () set_track("audio", 1) end
+ ne.eventresponder["wheel_up_press"] =
+ function () set_track("audio", -1) end
--cy_sub
ne = new_element("cy_sub", "button")
@@ -1957,6 +1961,10 @@ function osc_init()
function () set_track("sub", -1) end
ne.eventresponder["shift+mbtn_left_down"] =
function () show_message(get_tracklist("sub"), 2) end
+ ne.eventresponder["wheel_down_press"] =
+ function () set_track("sub", 1) end
+ ne.eventresponder["wheel_up_press"] =
+ function () set_track("sub", -1) end
--tog_fs
ne = new_element("tog_fs", "button")