Mercurial > mplayer.hg
comparison libmenu/menu.c @ 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 |
comparison
equal
deleted
inserted
replaced
25406:73d7d7898ee4 | 25407:d97159ca0e17 |
---|---|
143 if(r == 0) | 143 if(r == 0) |
144 break; | 144 break; |
145 key = asx_get_attrib("key",attribs); | 145 key = asx_get_attrib("key",attribs); |
146 cmd = asx_get_attrib("cmd",attribs); | 146 cmd = asx_get_attrib("cmd",attribs); |
147 if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) { | 147 if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) { |
148 keycode &= ~MP_NO_REPEAT_KEY; | |
148 mp_msg(MSGT_GLOBAL,MSGL_V, | 149 mp_msg(MSGT_GLOBAL,MSGL_V, |
149 "[libmenu] got keybinding element %d %s=>[%s].\n", | 150 "[libmenu] got keybinding element %d %s=>[%s].\n", |
150 keycode, key, cmd ? cmd : ""); | 151 keycode, key, cmd ? cmd : ""); |
151 bindings->bindings = realloc(bindings->bindings, | 152 bindings->bindings = realloc(bindings->bindings, |
152 (bindings->binding_num+1)*sizeof(key_cmd_t)); | 153 (bindings->binding_num+1)*sizeof(key_cmd_t)); |