mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
in_sdl.c (IN_SendKeyEvents): fixed major thinko in SDLK_WORLD_xx
change from yesterday's r746. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@748 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a3f4bdbbab
commit
408c366096
1 changed files with 6 additions and 3 deletions
|
@ -575,12 +575,15 @@ void IN_SendKeyEvents (void)
|
||||||
case 178: /* the '²' key */
|
case 178: /* the '²' key */
|
||||||
sym = '~';
|
sym = '~';
|
||||||
break;
|
break;
|
||||||
}
|
default:
|
||||||
/* If we are not directly handled and still above 255,
|
/* If we are not directly handled and still above 255,
|
||||||
* just force it to 0. kill unsupported international
|
* just force it to 0. kill unsupported international
|
||||||
* characters, too. */
|
* characters, too. */
|
||||||
if (sym > 255 || (sym >= SDLK_WORLD_0 && sym <= SDLK_WORLD_95))
|
if ((sym >= SDLK_WORLD_0 && sym <= SDLK_WORLD_95) ||
|
||||||
|
sym > 255)
|
||||||
sym = 0;
|
sym = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
Key_Event (sym, state);
|
Key_Event (sym, state);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue