1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

osc: add scrolling to audio/sub buttons

Consistent with other osc buttons now
This commit is contained in:
llyyr 2023-09-11 12:37:50 +05:30 committed by Niklas Haas
parent bc35180933
commit 181eddc80e
2 changed files with 9 additions and 0 deletions

View File

@ -102,6 +102,7 @@ audio and sub
left-click cycle audio/sub tracks forward
right-click cycle audio/sub tracks backwards
shift+L-click show available audio/sub tracks
mouse wheel cycle audio/sub tracks forward/backwards
============= ================================================
vol

View File

@ -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")