Fixes to mouse mode confined and captured#21753
Conversation
acba38b to
8cc566f
Compare
These modes will work on Linux in the same way as Windows.
8cc566f to
7d6364d
Compare
|
This should be cherrypicked after merge because fix free camera that also affect 3.0.6 and 3.1 alpha. |
|
There's also @moiman100's #20491 which is pending a merge and addresses a similar concern, so I'm not sure if we should merge both, or only one of them, or a mix of the two. Could you guys compare the two and see what the final outcome should be? :) |
|
Also how does it work with #19191 if we were to merge that one too before or after this PR? |
I tested #20491 for Linux and I think we shouldn't merge it, his changes doesn't look good when using My PR already fix #20491 and I'm also fixing confined mode.
You can merge both in this case, both are needed (but one don't depend of the other). I already tested local with both PRs and it should not generate any conflict (the order doesn't matter). |
|
Thanks for testing. Let's merge this one then :) |
|
Now that Godot 3.1 has been released, we only plan to cherry-pick critical bug fixes to the 3.0 branch, unless there is very strong support in favor of a specific non-critical issue. Removing cherrypick label for 3.0. |

CONFINED and CAPTURED will work on Linux in the same way as Windows.
When mouse mode is CAPTURED, the cursor (global/green dot) will be forced to center.
Fix #21744.
Fix #21751. The "cursor" doesn't leaves our planet anymore.
Screencast from Linux (using mouse):


(using pen in absolute mode)
Considerations:
On Windows, pen and touch doesn't work in captured mode. Issue opened #21779.
Update
Also fix free camera for Linux. The camera stop when the "cursor" leaves the viewport.


Tested with 5307043, 3.0.6 and 3.1 alpha:
After this PR: