osc.lua: allow wheel bindings for custom buttons
This commit is contained in:
1 parent
f561efec40
commit
d8a79a1ca8
2 files changed
+8
No files matched your search
@@ -612,6 +612,12 @@ and ``topbar`` layouts.
|
||||
custom_button_2_content=🔀
|
||||
custom_button_2_mbtn_left_command=playlist-shuffle
|
||||
|
||||
custom_button_3_content=⏱
|
||||
custom_button_3_mbtn_left_command=add speed 1
|
||||
custom_button_3_mbtn_right_command=set speed 1
|
||||
custom_button_3_wheel_up_command=add speed 0.25
|
||||
custom_button_3_wheel_down_command=add speed -0.25
|
||||
|
||||
Script Commands
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -129,6 +129,8 @@ for i = 1, 99 do
|
||||
user_opts["custom_button_" .. i .. "_mbtn_left_command"] = ""
|
||||
user_opts["custom_button_" .. i .. "_mbtn_mid_command"] = ""
|
||||
user_opts["custom_button_" .. i .. "_mbtn_right_command"] = ""
|
||||
user_opts["custom_button_" .. i .. "_wheel_down_command"] = ""
|
||||
user_opts["custom_button_" .. i .. "_wheel_up_command"] = ""
|
||||
end
|
||||
|
||||
local icon_font = "mpv-osd-symbols"
|
||||
|
||||
Reference in new issue
Block a user