diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-22 11:16:35 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-22 11:16:35 +0000 |
commit | 245deeff66c8158c9ca6be1e40a3a29b4bd3c8d5 (patch) | |
tree | 98d5ebc0bf4863f16a7f20977cb68274f91405b3 /code | |
parent | 2158189d919e58cdccb0a365f8614183905960be (diff) | |
download | ioquake3-aero-245deeff66c8158c9ca6be1e40a3a29b4bd3c8d5.tar.gz ioquake3-aero-245deeff66c8158c9ca6be1e40a3a29b4bd3c8d5.zip |
* Prevent ~ from generating a character
* Fix backspace on OS X (I hope)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1453 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/sdl/sdl_input.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 95dc0d4..23b20b4 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -234,12 +234,18 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym, *key = CTRL('h'); *buf = *key; } + else + *buf = ch; break; default: *buf = ch; break; } } + // Never allow a '~' SE_CHAR event to be generated + if( *key == '~' ) + *buf = '\0'; + if( in_keyboardDebug->integer ) IN_PrintKey( keysym, *key, down ); |