Mouse position not updating when holding left mouse button?
I posted this same issue in the C++ forums but I thought I might post it here too as it feels like a possible bug.
In all previous engine versions this hasn't been a problem, (I moved straight from 4.9 to 4.11) it's only when updating to 4.11 that this has now become a problem for me. When holding the Left Mouse button and dragging the mouse around, the engine doesn't seem to update the mouse position at all, instead it completely locks it in place where I originally held the Left Mouse Button.
Is there a method to release this lock or is this a possible bug?
The problem I'm currently having is that I'm trying to drag actors around the level but now I'm unable to do so due to the mouse position not updating when holding down the Left Mouse Button.
asked May 01 '16 at 12:23 PM in Bug Reports
I already have that set in a number of places. I'm using a Toggle instead now so that I left click once to enable the dragging of an actor, then right click to release as holding down left mouse button just isn't working for me anymore, I have no idea why.
Cheers for taking the time to respond Doug, much appreciated.
answered May 05 '16 at 07:49 PM
I was having the same issue after updating an old project, and after a ton of digging finally found the culprit (in my case).
It seems the 'Player Controller -> Set Input Mode Game and UI' Blueprint node now has a 'Hide Cursor During Capture' option, and it defaults to 'true'. When that option is enabled the mouse disappears when any mouse button is held, and the position is essentially held in-place (there seems to be some sub-frame updates that still go through, but at some point every frame the mouse position snaps back to the original click position).
Disabling that option immediately fixed the issue for me, the mouse stayed visible and the position updated continuously. I'm not sure if it's a bug with that option, or if that's the intended behavior - seems like a bug to me since it's actually changing the mouse input rather than just hiding the cursor.
answered Aug 28 '16 at 05:03 AM
To prevent the cursor from disappearing when holding the button you can set PlayerController::bShowMouseCursor to true to allow the mouse to still interact with the game and remain visible as it moves around the viewport.
answered May 05 '16 at 02:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here