mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-28 20:40:48 +00:00
Merge pull request #852 from reeFridge/fix/850-abs-mouse-coords-for-tools
Generate absolute mouse coords when imgui tools are active
This commit is contained in:
commit
65069c68e5
1 changed files with 1 additions and 1 deletions
|
@ -1216,7 +1216,7 @@ sysEvent_t Sys_GetEvent()
|
||||||
case SDL_MOUSEMOTION:
|
case SDL_MOUSEMOTION:
|
||||||
// DG: return event with absolute mouse-coordinates when in menu
|
// DG: return event with absolute mouse-coordinates when in menu
|
||||||
// to fix cursor problems in windowed mode
|
// to fix cursor problems in windowed mode
|
||||||
if( game && game->Shell_IsActive() )
|
if( game && ( game->Shell_IsActive() || ImGuiTools::ReleaseMouseForTools() ) )
|
||||||
{
|
{
|
||||||
res.evType = SE_MOUSE_ABSOLUTE;
|
res.evType = SE_MOUSE_ABSOLUTE;
|
||||||
res.evValue = ev.motion.x;
|
res.evValue = ev.motion.x;
|
||||||
|
|
Loading…
Reference in a new issue