comparison input/input.c @ 6183:a4bbda72ce86

fix two small bug and add multimedia keyboard support ( i tested with Acer AirKey V only )
author pontscho
date Sat, 25 May 2002 09:46:37 +0000
parents 523014df7d32
children ee65527096c2
comparison
equal deleted inserted replaced
6182:17a410342277 6183:a4bbda72ce86
623 cmd = mp_input_find_bind_for_key(cmd_binds,n,keys); 623 cmd = mp_input_find_bind_for_key(cmd_binds,n,keys);
624 if(cmd == NULL) 624 if(cmd == NULL)
625 cmd = mp_input_find_bind_for_key(def_cmd_binds,n,keys); 625 cmd = mp_input_find_bind_for_key(def_cmd_binds,n,keys);
626 626
627 if(cmd == NULL) { 627 if(cmd == NULL) {
628 mp_msg(MSGT_INPUT,MSGL_ERR,"No bind found for key %s",mp_input_get_key_name(keys[0])); 628 mp_msg(MSGT_INPUT,MSGL_WARN,"No bind found for key %s",mp_input_get_key_name(keys[0]));
629 if(n > 1) { 629 if(n > 1) {
630 int s; 630 int s;
631 for(s=1; s < n; s++) 631 for(s=1; s < n; s++)
632 mp_msg(MSGT_INPUT,MSGL_ERR,"-%s",mp_input_get_key_name(keys[s])); 632 mp_msg(MSGT_INPUT,MSGL_WARN,"-%s",mp_input_get_key_name(keys[s]));
633 } 633 }
634 mp_msg(MSGT_INPUT,MSGL_ERR," \n"); 634 mp_msg(MSGT_INPUT,MSGL_WARN," \n");
635 return NULL; 635 return NULL;
636 } 636 }
637 ret = mp_input_parse_cmd(cmd); 637 ret = mp_input_parse_cmd(cmd);
638 if(!ret) { 638 if(!ret) {
639 mp_msg(MSGT_INPUT,MSGL_ERR,"Invalid command for binded key %s",mp_input_get_key_name(key_down[0])); 639 mp_msg(MSGT_INPUT,MSGL_ERR,"Invalid command for binded key %s",mp_input_get_key_name(key_down[0]));