I’ve ran into this weird behavior with 4.14. Everything works great in PIE mode, but as soon as I play packaged or standalone version, mouse clicks for some strange reason reset mouse position to center.
To show my issue, I’ve captured two videos - they are exactly the same situation but the first is run in PIE mode, the other as standalone mode.
as an information which might help - this happens only when
“Set Input Mode Game And UI” has In Mouse Lock Mode set to locking. With Do Not Lock the problem never appears.
I was unable to reproduce this issue with the information provided. I have a few questions for you that will help narrow down what issue it is that you are experiencing.
Quick questions:
Can you reproduce this issue in a clean project?
If so, could you provide a detailed list of steps to reproduce this issue on our end?
Could you provided screen shots of any blueprints/widget/settings that may be involved with this issue?
If you click above the scalebox, the “behind button” gets pressed. If you however click outside the scale box, the mouse click goes through and cursor is reset to center.
My real case is much more complex but I believe the symptoms are similar. I believe that at certain constellations UMG doesn’t register the click, loses focus for a second, regains it and thus get recentered? Pease note that I am using custom mouse widget bound to Player Controller mouse position.
I finally got my issue to “work” in PIE. I then on a whim ran it in stand alone mode and I cannot get the mouse to go into the game window at all.
The mouse cursor acts like it is stuck in the upper left corner of my monitor.
I changed input mode back to game only and that put the cursor back in the game window, but then all my original problems come back with my right click behavior.
I ran a few more test and I am still unable to reproduce this issue on our end. Would it be possible for you to provide the clean project that you used to reproduce this issue so that I could take a closer look?
I took a look at the thread that you linked in your last post. It appears that you are setting the mouse position when releasing the right mouse button. Could you check to make sure that you are not providing a position of 0,0 during this action?
I downloaded the project form the link provided above. I noticed that you are using a plugin. Can you reproduce this issue without using the MORT plugin?
I see that you are working with someone on the other thread. I will be closing this one for now. I have again posted the link you provided above for ease of future users. As this appears to be the same issue. I am condensing the threads for tracking purposes.