summaryrefslogtreecommitdiffstats
path: root/player/lua/osc.lua
diff options
context:
space:
mode:
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 150aa547dd..8b8ac9bd12 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1398,6 +1398,8 @@ function osc_init()
function () mp.commandv("playlist-prev", "weak") end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(mp.get_property_osd("playlist"), 3) end
+ ne.eventresponder["mouse_btn2_up"] =
+ function () show_message(mp.get_property_osd("playlist"), 3) end
--next
ne = new_element("pl_next", "button")
@@ -1408,6 +1410,8 @@ function osc_init()
function () mp.commandv("playlist-next", "weak") end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(mp.get_property_osd("playlist"), 3) end
+ ne.eventresponder["mouse_btn2_up"] =
+ function () show_message(mp.get_property_osd("playlist"), 3) end
-- big buttons
@@ -1458,6 +1462,8 @@ function osc_init()
function () mp.commandv("osd-msg", "add", "chapter", -1) end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(mp.get_property_osd("chapter-list"), 3) end
+ ne.eventresponder["mouse_btn2_up"] =
+ function () show_message(mp.get_property_osd("chapter-list"), 3) end
--ch_next
ne = new_element("ch_next", "button")
@@ -1468,6 +1474,8 @@ function osc_init()
function () mp.commandv("osd-msg", "add", "chapter", 1) end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(mp.get_property_osd("chapter-list"), 3) end
+ ne.eventresponder["mouse_btn2_up"] =
+ function () show_message(mp.get_property_osd("chapter-list"), 3) end
--
update_tracklist()