When the Input Mode of a PlayerController is set to Game Only and Show Mouse Cursor is set to true, mouse press events no longer consistently fire. They fire about 25% of the time. Of note, the release event fires every time no matter what. Is there a work around? When using Game and UI, it fixes it, but then I can’t have the mouse for camera following.
Steps to reproduce:
-
Create a blank project
-
Create a new pawn
-
In the pawn’s BeginPlay, cast its controller to PlayerController, then set its Input Mode to Game Only, and Show Mouse Cursor to true
-
Add an event to the pawn on Left Mouse Button. On press, print “Start”. On release, print “End”
-
Create a new gamemode, set the default pawn to the created pawn
-
Set the map gamemode to the created gamemode
-
Play, and press LMB