osezer patch 005
authorDan Olson <theoddone33@icculus.org>
Wed, 23 Apr 2008 10:23:25 +0000 (03:23 -0700)
committerDan Olson <theoddone33@icculus.org>
Wed, 23 Apr 2008 10:23:25 +0000 (03:23 -0700)
handled keypad enter key in SDL input driver.

sdl/i_sdl.c
sdl/i_sdlgl.c

index 2844648..dbc054a 100644 (file)
@@ -319,7 +319,10 @@ int xlatekey(SDL_keysym *key)
       case SDLK_DOWN:  rc = KEY_DOWNARROW;     break;
       case SDLK_UP:    rc = KEY_UPARROW;       break;
       case SDLK_ESCAPE:        rc = KEY_ESCAPE;        break;
+
+      case SDLK_KP_ENTER:
       case SDLK_RETURN:        rc = KEY_ENTER;         break;
+
       case SDLK_F1:    rc = KEY_F1;            break;
       case SDLK_F2:    rc = KEY_F2;            break;
       case SDLK_F3:    rc = KEY_F3;            break;
index 86e833a..0307d3d 100644 (file)
@@ -257,7 +257,10 @@ int xlatekey(SDL_keysym *key)
       case SDLK_DOWN:  rc = KEY_DOWNARROW;     break;
       case SDLK_UP:    rc = KEY_UPARROW;       break;
       case SDLK_ESCAPE:        rc = KEY_ESCAPE;        break;
+
+      case SDLK_KP_ENTER:
       case SDLK_RETURN:        rc = KEY_ENTER;         break;
+
       case SDLK_F1:    rc = KEY_F1;            break;
       case SDLK_F2:    rc = KEY_F2;            break;
       case SDLK_F3:    rc = KEY_F3;            break;