keys.c: K_BACKSPACE (127) is a non printable character.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1021 af15c1b1-3010-417e-b628-4374ebc0bcbd
input: remove the USE_SDL2 check from keys.c.

Instead, make the backend responsible for calling either or both
of Key_Event and Char_Event under the appropriate circumstances.
For SDL2 this means no change, for SDL1 this means call both when
a key is pressed, but call only Key_Event when a key is released.



git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1022 af15c1b1-3010-417e-b628-4374ebc0bcbd
in_sdl: SDL1: don't send '`' or '~' to the console.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1023 af15c1b1-3010-417e-b628-4374ebc0bcbd
input: Some cleanup regarding the special treatment of '`' and '~' in the console.

This was hardcoded in in_sdl.c, now it is handled by Char_Console() itself, like it is in Key_Event().


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1024 af15c1b1-3010-417e-b628-4374ebc0bcbd
net_sdlnet.c: Silence an assigned-but-not-used compiler warning.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1025 af15c1b1-3010-417e-b628-4374ebc0bcbd
gl_vidsdl.c: Minor VID_Toggle() fast path optimization.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1026 af15c1b1-3010-417e-b628-4374ebc0bcbd
input: Some more console-toggle-key tuning.

Partial revert of r1024, since the lastKeyDown stuff is actually needed for SDL2 when the keyboard layout has a printable character that isn't '`' or '~' on the default console-toggle-key (the one below 'Esc'). Instead of hardcoding it though, it is now determined by a new Key_ConsoleBindable function. This makes sure that we don't write an unwanted character into the console as a side effect of opening/closing it, but it still does allow the user to type '`' and '~' in chat messages.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1027 af15c1b1-3010-417e-b628-4374ebc0bcbd
keys.c: Simplify Key_ConsoleBindable.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1028 af15c1b1-3010-417e-b628-4374ebc0bcbd