dhewm3/neo/ui
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
..
BindWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
BindWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ChoiceWindow.cpp Make rvGEWindowWrapper (for GUI editor) 64bit clean 2021-05-08 07:03:55 +02:00
ChoiceWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeviceContext.cpp Scale "Menu" GUIs (incl. PDA + fullscreen vids) to 4:3 2018-10-28 05:29:11 +01:00
DeviceContext.h Scale "Menu" GUIs (incl. PDA + fullscreen vids) to 4:3 2018-10-28 05:29:11 +01:00
EditWindow.cpp Improve handling of "console key", add in_ignoreConsoleKey CVar 2021-07-15 07:00:18 +02:00
EditWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
FieldWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
FieldWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBearShootWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBearShootWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBustOutWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameBustOutWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameSSDWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameSSDWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GameWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GuiScript.cpp Some spelling error fixes found during Debian build 2018-06-30 00:08:45 -01:00
GuiScript.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListGUI.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListGUI.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListGUILocal.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ListWindow.cpp idListWindow: Scroll to selected item 2021-07-03 02:25:20 +02:00
ListWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
MarkerWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
MarkerWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Rectangle.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RegExp.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RegExp.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
RegExp_old.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
RenderWindow.cpp Scale "Menu" GUIs (incl. PDA + fullscreen vids) to 4:3 2018-10-28 05:29:11 +01:00
RenderWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SimpleWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SimpleWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SliderWindow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SliderWindow.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
UserInterface.cpp Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
UserInterface.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
UserInterfaceLocal.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Window.cpp Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
Window.h Allow scaling non-menu WIN_DESKTOP GUIs to 4:3 2018-11-05 04:33:57 +01:00
Winvar.cpp Fix new[]/delete missmatches and memory leaks found by clang's ASAN 2015-12-17 18:11:03 +01:00
Winvar.h Fix new[]/delete missmatches and memory leaks found by clang's ASAN 2015-12-17 18:11:03 +01:00