UE-28811 & UE-29148 Unresolved in 4.11.2
Fixed! UE-28811 Get mouse X/ Get mouse Y returns zero after the user clicks the screen and mouse is shown Fixed! UE-29148 Using "Show Mouse Cursor" breaks mouse axis movement
These appear to still be broken.
1) Mouse Cursor is set to shown on PlayerController
The following all return 0 under the above conditions on both PlayerController (consume input disabled) and a possesed spectator pawn (input enabled):
-Custom Mouse Axis Bind
My testing has shown this bug to be centered around the Project Settings -> Input variable named "Default Viewport Mouse Capture Mode". The two capture Permanently options are providing the wrong capture. Capture during MouseDown and RightMouseDown is working as intended. However all modes process mouse input until first mouse up event. During this time, the cursor is bound to the game window.
In addition, setting "Consume Input" to false on mouse axis events does not work correctly, the event will fire on a controlled pawn but the value of the axis will be 0 (in addition to the above issue).
Further testing shows:
-Setting InputModeGameOnly will reset Mouse values to a state similar to first run (ie. before first MouseUp event) -Setting InputMode to either UI enabled option acts like the MouseUp event does in terms of causing a mouse 0 state, and was also extremely buggy in my test case.
As a related issue. 4.10 projects converted to 4.11 show inconsistent mouse behaviour seperate to this issue. (Notably relating to double clicks). This appears to be routed in the same ViewportCaptureMode from above, as this was added to 4.11 as a new feature as part of the HUD class rework (to my understanding).
I have a Test4.11Project if anyone wants to verify to see if there is an error somewhere.
I have tested this issue again using 4.11.2 and it appears that you are correct. I have updated the report (UE-28811) and I have submitted this information for further consideration. I will provide updates with any pertinent information as it becomes available. As for the issue UE-29148, I ran through the test case for this issue and while the issues are similar it appears to be resolved. Thank you for your time and information.
Make it a great day
answered Apr 27 '16 at 03:49 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here