TouchControls: Implement an option for dig/place buttons #15845
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
meant to resolve #13229
This PR adds the option to have dig/place buttons as a part of the touchscreen layout, instead of using long/short tap gestures for digging/placing. The biggest advantage is probably that the buttons allow for precise timing.
This PR introduces three different "modes" for the touch controls (new setting
touch_interaction_style
):touch_use_crosshair = false
)Long/short tap anywhere on the screen to interact. Interaction happens at finger position.
touch_use_crosshair = true
)Long/short tap anywhere on the screen to interact. Interaction happens at crosshair position.
Use dedicated dig/place buttons to interact. Interaction happens at crosshair position.
Adding an option for dig/place buttons and framing the different control schemes as "modes" (as an enumeration) in the settings was inspired by Minecraft's mobile version.
Video demo of the three modes (the new mode is at the end):
buttonn.mp4
To do
This PR is a Ready for Review.
Note: ~300 of the ~530 added lines in this PR are the new SVG icons.
How to test
To have some fun, you could try the new control scheme in Block League on the A.E.S. server