Missing mouse events when Input Mode game only and bShowMouseCursor == true

If you set the input mode to GameOnly in your player controller and then set bShowMouseCursor to true then mouse clicks start to get missed. With those two settings I started missing about half my click events while clicking rapidly, but if I slowed down I was able to get into a rhythm where not a single click was being registered. I’ve attached a project where I reproduced the bug but the steps I took to make the project are as follows:

  1. Create a blueprint inherited from PlayerController.
  2. Make a left mouse button event that prints a string when pressed.
  3. Make a right mouse button event that sets bShowMouseCursor = !bShowMouseCursor when pressed.
  4. In BeginPlay call the “Set Input Mode Game Only” function, pass in a reference to self.
  5. Create a blueprint inherited from GameMode.
  6. Set the default PlayerController to the PC from step 1.
  7. Run PIE. Left clicking brings up the printed string from step 2 every time if the mouse cursor is visible but starts getting missed if you toggle the cursor on.

Here’s my repro case project. Thanks.

Hello kgamble,

I was able to reproduce this issue on our end. I have written up a report (UE-32059) and I have submitted to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

This bug still exists in 4.25.4.