in_sdl.c: fixed backspace key on Mac OS X

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@631 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2012-02-10 22:04:43 +00:00
parent b269598872
commit f99af3f724

View file

@ -364,6 +364,10 @@ void IN_SendKeyEvents (void)
case key_console:
if ((event.key.keysym.unicode != 0) || (modstate & KMOD_SHIFT))
{
#if defined(__APPLE__) && defined(__MACH__)
if (sym == SDLK_BACKSPACE)
break; /* avoid change to SDLK_DELETE */
#endif /* Mac OS X */
#if defined(__QNX__)
if ((sym == SDLK_BACKSPACE) || (sym == SDLK_RETURN))
break; /* S.A: fixes QNX weirdness */