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.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/lua.c') diff --git a/player/lua.c b/player/lua.c index 826de209ed..9e5e2c96a5 100644 --- a/player/lua.c +++ b/player/lua.c @@ -750,9 +750,9 @@ static int script_input_define_section(lua_State *L) char *contents = (char *)luaL_checkstring(L, 2); char *flags = (char *)luaL_optstring(L, 3, ""); bool builtin = true; - if (strcmp(flags, "builtin") == 0) { + if (strcmp(flags, "default") == 0) { builtin = true; - } else if (strcmp(flags, "default") == 0) { + } else if (strcmp(flags, "force") == 0) { builtin = false; } else if (strcmp(flags, "") == 0) { //pass -- cgit v1.2.3