mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 10:38:53 +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:
|
||||
// DG: return event with absolute mouse-coordinates when in menu
|
||||
// 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.evValue = ev.motion.x;
|
||||
|
|
Loading…
Reference in a new issue