dhewm3/neo
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
..
cm Disable Assertions in Release builds 2018-11-11 23:21:23 +01:00
d3xp Use idStr::Copynz() instead of strncpy() 2022-01-08 16:58:48 +01:00
framework Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
game Use idStr::Copynz() instead of strncpy() 2022-01-08 16:58:48 +01:00
idlib Use idStr::Copynz() instead of strncpy() 2022-01-08 16:58:48 +01:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
sound Update stb_vorbis to v1.22 and stb_image to v2.27 2021-10-31 06:14:59 +01:00
sys Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
tools Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
CMakeLists.txt CMakeLists.txt: Make D3_ARCH/dumpmachine output prettier 2021-10-12 19:59:40 +02:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00