dhewm3/neo/tools/materialeditor
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
..
ConsoleView.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
ConsoleView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
FindDialog.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
FindDialog.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialDef.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MaterialDef.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialDoc.cpp Some additional LONG to LONG_PTR fixes for the tools as well as some warning fixes 2021-05-07 16:06:06 -04:00
MaterialDoc.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialDocManager.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MaterialDocManager.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialEditor.cpp Add absolute mouse mode and refactor mouse grabbing code 2022-01-10 00:46:32 +01:00
MaterialEditor.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialEditView.cpp Rename GetWindowScalingFactor() to Win_GetW.., support older Win versions 2021-05-10 03:18:24 +02:00
MaterialEditView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialModifier.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MaterialModifier.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialPreviewPropView.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MaterialPreviewPropView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialPreviewView.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MaterialPreviewView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialPropTreeView.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MaterialPropTreeView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialTreeView.cpp Some additional LONG to LONG_PTR fixes for the tools as well as some warning fixes 2021-05-07 16:06:06 -04:00
MaterialTreeView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MaterialView.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MaterialView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MEMainFrame.cpp Rename GetWindowScalingFactor() to Win_GetW.., support older Win versions 2021-05-10 03:18:24 +02:00
MEMainFrame.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
MEOptions.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
MEOptions.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
StageView.cpp Some additional LONG to LONG_PTR fixes for the tools as well as some warning fixes 2021-05-07 16:06:06 -04:00
StageView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
ToggleListView.cpp Rename GetWindowScalingFactor() to Win_GetW.., support older Win versions 2021-05-10 03:18:24 +02:00
ToggleListView.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00