dhewm3/neo/sys
Daniel Gibson ae63021d00 Add absolute mouse mode and refactor mouse grabbing code
There were lots of places in the code that called Sys_GrabInput(),
some of them each frame.
Most of this is unified in events.cpp now, in handleMouseGrab() which
is called once per frame by Sys_GenerateEvents() - this makes reasoning
about when the mouse is grabbed and when not a lot easier.
Sys_GrabInput(false) still is called in a few places, before operations
that tend to take long (like loading a map or vid_restart), but
(hopefully) not regularly anymore.

The other big change is that the game now uses SDLs absolute mouse mode
for fullscreen menus (except the PDA which is an ugly hack), so the
ingame cursor is at the same position as the system cursor, which
especially helps when debugging with `in_nograb 1` and should also help
if someone wants to integrate an additional GUI toolkit like Dear ImGui.
2022-01-10 00:46:32 +01:00
..
aros Use idStr::Copynz() instead of strncpy() 2022-01-08 16:58:48 +01:00
cmake Use stb_vorbis instead of libogg and libvorbis(file) 2021-04-27 20:08:59 +02:00
linux Prevent user from running dhewm3 as root. 2021-12-16 23:08:09 +01:00
osx Use idStr::Copynz() instead of strncpy() 2022-01-08 16:58:48 +01:00
posix Shorten file path in backtraces 2022-01-08 17:02:24 +01:00
stub Do gamma correction (r_gamma, r_brightness) in shaders 2021-06-20 03:36:39 +02:00
win32 Shorten file path in backtraces 2022-01-08 17:02:24 +01:00
cpu.cpp Fix sys/cpu.cpp for msvc 64bit 2012-07-06 01:06:59 +02:00
doom_icon.h Window Icon, make in_nograb work with SDL2 2015-03-02 00:03:30 +01:00
events.cpp Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
glimp.cpp Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
platform.h Fix compatibility with Mac OSX 10.4 and 10.5 2021-10-12 19:07:41 +02:00
sys_local.cpp Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
sys_local.h Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
sys_public.h Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
threads.cpp Add SysIsMainThread() function 2021-06-20 03:36:39 +02:00