From 9a7a3d125be38d46db0bf5de26e9c41392cc63fb Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 26 Feb 2014 00:59:19 +0100 Subject: osd: override user bindings for OSC input E.g. binding MOUSE_BTN0 always used the user defined binding. While it is ok that the user can override mouse_move and mouse_leave (for whatever reasons), we want to strictly override the bindings when input is sent to the OSC itself. Regression since 03624a1. --- player/lua/defaults.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/lua/defaults.lua') diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index 3f3dab7490..4f90b1d234 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -27,7 +27,7 @@ local default_section = "input_dispatch_" .. mp.script_name -- callback can be a string too, in which case the following will be added like -- an input.conf line: key .. " " .. callback -- (And callback_down is ignored.) -function mp.set_key_bindings(list, section) +function mp.set_key_bindings(list, section, flags) local cfg = "" for i = 1, #list do local entry = list[i] @@ -42,7 +42,7 @@ function mp.set_key_bindings(list, section) cfg = cfg .. key .. " " .. cb .. "\n" end end - mp.input_define_section(section or default_section, cfg) + mp.input_define_section(section or default_section, cfg, flags) end function mp.enable_key_bindings(section, flags) -- cgit v1.2.3