changeset 25407:d97159ca0e17

Remove NO_REPEAT mask from keycode, fix keycode matching for JOY_BTN0, etc.
author ulion
date Mon, 17 Dec 2007 14:55:45 +0000
parents 73d7d7898ee4
children f73887cc6b45
files libmenu/menu.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu.c	Mon Dec 17 14:53:38 2007 +0000
+++ b/libmenu/menu.c	Mon Dec 17 14:55:45 2007 +0000
@@ -145,6 +145,7 @@
           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 : "");