r1454 - trunk/code/sdl
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Aug 22 07:41:55 EDT 2008
Author: tma
Date: 2008-08-22 07:41:54 -0400 (Fri, 22 Aug 2008)
New Revision: 1454
Modified:
trunk/code/sdl/sdl_input.c
Log:
* Really fix backspace on OS X (I hope)
Modified: trunk/code/sdl/sdl_input.c
===================================================================
--- trunk/code/sdl/sdl_input.c 2008-08-22 11:16:35 UTC (rev 1453)
+++ trunk/code/sdl/sdl_input.c 2008-08-22 11:41:54 UTC (rev 1454)
@@ -169,7 +169,7 @@
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 @@
// 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;
}
More information about the quake3-commits
mailing list