mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 18:12:22 +00:00
Remove NO_REPEAT mask from keycode, fix keycode matching for JOY_BTN0, etc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25435 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
914c5bb994
commit
5ff065269c
@ -145,6 +145,7 @@ static int menu_parse_config(char* buffer) {
|
||||
key = asx_get_attrib("key",attribs);
|
||||
cmd = asx_get_attrib("cmd",attribs);
|
||||
if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) {
|
||||
keycode &= ~MP_NO_REPEAT_KEY;
|
||||
mp_msg(MSGT_GLOBAL,MSGL_V,
|
||||
"[libmenu] got keybinding element %d %s=>[%s].\n",
|
||||
keycode, key, cmd ? cmd : "");
|
||||
|
Loading…
Reference in New Issue
Block a user