mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 18:50:20 +00:00
Generate absolute mouse coords when imgui tools are active
This commit is contained in:
parent
ab663a769f
commit
ee73078db1
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