New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Touchscreen: Camera movement improvements #14301
Conversation
fcbc7fc
to
cafc9a1
Compare
7be27e2
to
53dc7f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good to me.
53dc7f6
to
a287858
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current state of this PR looks good to me. I can not feel any difference while testing, though.
I assume your approval applies even though you didn't add the "One approval" label? I'd like this PR to get more testing before it's merged, but no players have shown interest in testing it for 1+ month. Merging it seems to be the only way for it to get more testing. If you didn't notice a difference, the changes may have less impact than I expected anyway. |
Fixes #11003.
On touchscreens, you can currently only move your camera while digging if
touch_use_crosshair = true
is set. This is an arbitrary and unnecessary limitation. The Android version of Minecraft doesn't have this issue. An example where it is especially annoying: If you're charging a bow in MineClone 2, you can't aim if you don't enabletouch_use_crosshair
.This PR removes this limitation.
This PR also adjusts
touchscreen_sensitivity
to the display density to avoid too fast camera movement on high-DPI displays. The effective sensitivity stays the same forxhdpi
displays, which is the most common density according to https://developer.android.com/about/dashboards/.Additionally, this PR removes the visible camera jump when you cross the touchscreen_threshold.
To do
This PR is a Ready for Review.
Looking for feedback from touchscreen players.
How to test
Try moving the camera while digging (or aiming a bow in MineClone 2) with
touch_use_crosshair = false
.