Norbyte / bg3se

Baldur's Gate 3 Script Extender
Other
1.11k stars 68 forks source link

Mouse cursor stays visible when using a controller if IMGUI is used #408

Open AtilioA opened 3 months ago

AtilioA commented 3 months ago

I have attempted solutions to common problems

Yes

I have checked that my game version is supported

Yes

OS

Windows 11

Platform

Steam

Description

When using a controller, the mouse cursor stays visible after using the KB/M UI at least once, and this also seems to cause a crash during multiplayer splitscreen.

Indications

The issue is present when using any IMGUI mod, with DirectX 11 and Vulkan. The issue persists regardless of overlays.

Tested on RTX 3000 and 4000, Ryzen 5000 and Intel 12th gen.

Diagnostic Files

Not included as I'm mostly passing along a bug report from a user (I was able to reproduce it easily)

Steps to Reproduce

  1. Navigate the main menu with a controller. Notice you won't be able to see any cursors even if you move your mouse.
  2. Start the game with IMGUI mods active (could possibly happen just by creating an IMGUI window in the console)
  3. Use KB/M to navigate the game. The UI will switch to the KB/M UI.
  4. Move the mouse cursor.
  5. Press any button in the controller to switch back to the gamepad UI.
  6. Observe the cursor still on the screen.

Expected Behavior

The mouse cursor should remain hidden when using a controller.

Actual Behavior

The mouse cursor remains visible with the gamepad UI. This also seems to causes a crash during multiplayer splitscreen (I did not investigate this)