EDIT: This doesn’t really fix it. Setting “Use Mouse for Touch” changes click behaviour alltogether.
I just found out what resolves this issue for me (I don’t know why though).
Go to Project Settings > Engine - Input.
Under Mouse Properties, check Use Mouse for Touch.
This toggles setting “bUseMouseForTouch=True” in DefaultInput.ini - now setting “Default Viewport Mouse Lock” works as intended, as well as using “Set Input Mode…” nodes.
Somehow on “Mouse Release” input mode is being changed (when no mouse cursor is shown), and so game doesn’t lock mouse anymore. I’d love to know what dev’s are writing on that issue, if there’s a consent that it’s a bug or if some think that it is working as intented and we should do things differently to get behaviour we want.
I just tested this in 4.13.0 Preview 1 and I am showing that it is working. Are you pressing any buttons that would take focus away? Did any pop ups take focus away from editor?
Any updates on this bug? It’s my understanding that this has been marked as a major issue for almost 2 years now, since version 4.6, and still has not been resolved. All that aside, I’d just like to have a fix or at least a workaround.
This was one of many pages I found looking for help when I ran into this same problem. I finally figured out a solution that worked for me. I made a video and wrote an article sharing my experience and solution to this problem.