mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-12-02 01:03:53 +00:00
ae63021d00
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. |
||
---|---|---|
.. | ||
af | ||
comafx | ||
common | ||
compilers | ||
debugger | ||
decl | ||
guied | ||
Help | ||
materialeditor | ||
particle | ||
pda | ||
radiant | ||
script | ||
sound | ||
edit_gui_common.h | ||
edit_public.h | ||
edit_stub.cpp |