diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-22 11:41:54 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-22 11:41:54 +0000 |
commit | f7b8641a76bdf60a9ebadcae5c7b67fd3a3401b8 (patch) | |
tree | e4912e9bc2b4a2c6694385ad1df3c5a7e5ab17b6 /code | |
parent | 245deeff66c8158c9ca6be1e40a3a29b4bd3c8d5 (diff) | |
download | ioquake3-aero-f7b8641a76bdf60a9ebadcae5c7b67fd3a3401b8.tar.gz ioquake3-aero-f7b8641a76bdf60a9ebadcae5c7b67fd3a3401b8.zip |
* Really fix backspace on OS X (I hope)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1454 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/sdl/sdl_input.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 23b20b4..de82d5d 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -169,7 +169,7 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym, case SDLK_F14: *key = K_F14; break; case SDLK_F15: *key = K_F15; break; - case SDLK_BACKSPACE: *key = K_BACKSPACE; break; // ctrl-h + case SDLK_BACKSPACE: *key = K_BACKSPACE; break; case SDLK_KP_PERIOD: *key = K_KP_DEL; break; case SDLK_DELETE: *key = K_DEL; break; case SDLK_PAUSE: *key = K_PAUSE; break; @@ -227,16 +227,15 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym, // So the key marked ~ always drops the console case '~': *key = '~'; break; - case 8: // backspace + case 127: // ASCII delete if( *key != K_DEL ) { // ctrl-h *key = CTRL('h'); *buf = *key; + break; } - else - *buf = ch; - break; + // fallthrough default: *buf = ch; break; } |