Quick and dirty upgrade to AntTweakBar 1.16.
Mostly compiling.
Compiling.
Mostly running on SDL2.
Basic text appending working for console and message mode.
Clean up event handling. Fix context initialization loop on window resize.
Correctly map keys from SDL to ATB. Fix keybinding, mouse button binding, etc.
Fix insert mode for console editing.
New mouse event handling. Also, just use AntTweakBar's cursors, because it insists on trodding over our custom cursor anyway.
Fix mouse warp logic.
Revert 836ce31ce10e1e9f28ddf026643186cc4ebd46a3: the filesystem module cannot depend on cvar (q2wmap, for example, does not initialize cvar but relies on filesystem). These changes should be made to Fs_SetGame, and a special hook in Cvar_Init or something.
Fix a bug in the media loading systems where the initial media seed of 0 causes startup assets to not actually be registered. Set a seed as part of S_InitMedia / R_InitMedia.
Flush the file descriptors for the default Com_Print, Com_Debug, etc. implementations.
Kill off stupidity in AntTweakBar.
Allow +set game to work on the command line (and elsewhere).
Fix last two compiler warnings. Neither were particularly dangerous..
Better SDL2 event handling. No more r_view.update hacks for TweakBar. Instead, let TweakBar know of SDL_WINDOWEVENT. Also support proper desktop resolutions on Retina displays.
Fix typeo in debug message.
Use larger buffer for vtos.
Totally broken shadow attenuation shader shit.