sys: implement signal handling on all platforms Prints a stack trace when crashing if using glibc. Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
input: stop capturing mouse movement if window is hidden without first losing focus Fixes players looking all around after they alt+tabbed. Moves the logic for selecting the mouse mode out of screen drawing and into SDL event handling where it's unaffected if we early-out of drawing the frame. Prevents mouse "grab" (raw/relative mode + cursor hiding) in a few "loading" situations. Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
vid: misc cleanups Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Simplify VID_SetMouse() calling logic Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
vid_null: Fix compiler warning on Windows build
Rename qboolean to qbool git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12920 d7cf8633-e32d-0410-b094-e92efae38249
Add GL_ExtensionSupported in vid_null.c because vid_shared.c relies on it. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12460 d7cf8633-e32d-0410-b094-e92efae38249
Remove v_hwgamma feature as it is not worth maintaining and has severe restrictions on Windows that are unintuitive. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12359 d7cf8633-e32d-0410-b094-e92efae38249
vid_desktopfullscreen improvements; allow querying the desktop mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12006 d7cf8633-e32d-0410-b094-e92efae38249
fix warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11477 d7cf8633-e32d-0410-b094-e92efae38249
implemented support for Windows XInput (using different keys/cvars to allow non-conflicting configs) in vid_shared.c, usable in WGL and SDL clients on Windows redesigned joystick code to encode any joystick data into a vid_joystate_t struct and use a common code path for all handling of axes and button events (also rewrote joy_axiskeyevents as part of this) changed joystick deadzone handling to make values start at 0 at the edge of the deadzone removed legacy joystick code in vid_wgl.c because it was too annoying to maintain removed some hacky SDL 1.3 iOS code that is no longer needed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11154 d7cf8633-e32d-0410-b094-e92efae38249
changed VID_InitMode to take a viddef_mode_t structure which contains the desired parameters, and allows it to modify them (previously only width/height could be modified) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9552 d7cf8633-e32d-0410-b094-e92efae38249
glx, sdl, wgl: autodetect all supported video modes, override the Quake menu's list by it git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9089 d7cf8633-e32d-0410-b094-e92efae38249
more fullscreen cleanup git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8688 d7cf8633-e32d-0410-b094-e92efae38249
renamed VID_GrabMouse to VID_SetMouse as it now takes 3 parameters (fullscreengrab, relative, hidecursor), this required reworking all the implementations and the calls, but gives the correct behavior in all cases git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8296 d7cf8633-e32d-0410-b094-e92efae38249
renamed IN_Activate to VID_GrabMouse and made it a public function in the VID API, this removed some shared logic from each VID_Finish implementation, and allows disabling the mouse grab at the beginning of a loading screen git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8284 d7cf8633-e32d-0410-b094-e92efae38249
implemented vid_samples cvar (antialiasing samples per pixel) oh and for the record, Windows multisample buffer setup is awful. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8090 d7cf8633-e32d-0410-b094-e92efae38249
move two #defined to quakedef.h, and always include quakedef.h first before any other includes, even system headers. This is to make compilation with gcc -combine work. Also, fix some type mismatches between source files. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7689 d7cf8633-e32d-0410-b094-e92efae38249
audited all Sys_Quit calls and gave them return values indicating whether the game quit normally, so shell scripts get a useful value git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7165 d7cf8633-e32d-0410-b094-e92efae38249
added vid_stereobuffer cvar based on patch from syschuck on the alientrap forums git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6604 d7cf8633-e32d-0410-b094-e92efae38249