RobertBeckebans / RBDOOM-3-BFG

Doom 3 BFG Edition source port with updated DX12 / Vulkan renderer and modern game engine features
https://www.moddb.com/mods/rbdoom-3-bfg
GNU General Public License v3.0
1.37k stars 244 forks source link

ImGui + SDL: Problems with releasing mouse when imgui ingame editors are active #850

Closed reeFridge closed 2 months ago

reeFridge commented 3 months ago

Environment:

Description of a bug:

Mouse cursor isn't moving when ingame imgui editors are active.

Steps to reproduce:

  1. exec editLights command via console

Result:

Mouse cursor stuck at the top-left corner of the game window and isn't moving.

Expected behaviour:

Mouse is moving normally.

Investigation:

Mouse position in imgui tools is updated by SE_MOUSE_ABSOLUTE but in SDL platform implementation it is generated only when the menu is opened, if that is not the case, then SE_MOUSE with relative mouse position is generated.

Possible fix: