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


git-svn-id: svn+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1027 af15c1b1-3010-417e-b628-4374ebc0bcbd
keys.c: Simplify Key_ConsoleBindable.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1028 af15c1b1-3010-417e-b628-4374ebc0bcbd
input: Add a function Key_GameKey to separate the input driver layer a bit more.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1029 af15c1b1-3010-417e-b628-4374ebc0bcbd
menu: Add Char_Event support for the textfields in the menu.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1030 af15c1b1-3010-417e-b628-4374ebc0bcbd
fix SDL2 compilation using g++

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1031 af15c1b1-3010-417e-b628-4374ebc0bcbd
update README files to reflect further 0.85.10 changes so far.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1032 af15c1b1-3010-417e-b628-4374ebc0bcbd
bumped version to 0.90.0

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1033 af15c1b1-3010-417e-b628-4374ebc0bcbd
Makefile.darwin: target 10.5 when building for x86 against SDL2.
build_cross_osx-sdl2.sh: new script for me to cross-build on my linux.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1034 af15c1b1-3010-417e-b628-4374ebc0bcbd
r_world: Add a new R_DrawTextureChains_Multitexture_VBO function. Draws lightmapped surfaces with fulbrights in one pass, using the VBO. Requires 3 TMUs, GL_COMBINE_EXT, and GL_ADD.
	R_DrawTextureChains_Multitexture: revert to the way it was before VBO support was added.
gl_texmgr: expose GL_SelectTexture. make the implementation less convoluted and support 3 TMUs.
gl_vidsdl: check GL_MAX_TEXTURE_UNITS
r_brush: only create VBOs if 3 TMUs available

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1035 af15c1b1-3010-417e-b628-4374ebc0bcbd
apply a modified form of Eric's Makefile.darwin patch from 
https://github.com/ericwa/quakespasm-build-scripts/blob/master/sdlframeworkpath.diff


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1036 af15c1b1-3010-417e-b628-4374ebc0bcbd
documentation update

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1037 af15c1b1-3010-417e-b628-4374ebc0bcbd
keys.c Key_Event(): add sanity check


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1038 af15c1b1-3010-417e-b628-4374ebc0bcbd
Revert r731 ("Make the key menu scrollable").

In hindsight this really was "shooting a cannon at a mosquito". Even at a resolution of 320x200 we don't actually draw any keybindings off-screen, we just draw the last one very close to the edge (similar to the version string in the bottom right of the console). Although that is not visually pleasing, it is not that likely to actually occur (not many people will use a resolution of 320x200 or set the 2D scaling to the maximum value), and is not worth always having one keybinding "missing" at any scale setting.

(If we even want/need to readd this, it should work dynamically, e.g. calculate a "virtual resolution" from the actual window resolution and the actual 2D scaling value.)


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1039 af15c1b1-3010-417e-b628-4374ebc0bcbd
in_sdl.c: SDL2: skip over UTF-8 multibyte characters.

Before, we stopped processing at the first byte of a multibyte character, now we skip over the bytes of a multibyte character and continue. This will probably not have a noticeable effect, but it's arguably more correct.


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