Handle unmapped SDL keys as a known key, best we can do.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@850
This commit is contained in:
parent
3c9284193e
commit
ae7a6f81ed
1 changed files with 3 additions and 3 deletions
|
@ -391,11 +391,11 @@ static void HandleKey(SDL_KeyboardEvent * key) {
|
|||
case SDLK_KP_ENTER:code=KBD_kpenter;break;
|
||||
case SDLK_KP_PERIOD:code=KBD_kpperiod;break;
|
||||
|
||||
// case SDLK_:code=key_;break;
|
||||
/* Special Keys */
|
||||
default:
|
||||
//TODO maybe give warning for keypress unknown
|
||||
return;
|
||||
code=KBD_1;
|
||||
LOG(LOG_ERROR|LOG_KEYBOARD,"Unhandled SDL keysym %d",key->keysym.sym);
|
||||
break;
|
||||
}
|
||||
/* Check the modifiers */
|
||||
Bitu mod=
|
||||
|
|
Loading…
Add table
Reference in a new issue