WIP: controls:android:fix bow/rocket/spyglass/burger_follow #4066
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#4066
Loading…
Reference in New Issue
No description provided.
Delete Branch "Bakawun/MineClone2:android_support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Minetest pr https://github.com/minetest/minetest/pull/14087 adds the ability for games to modify the touch controls.
Add the customized controls for bows, spyglass, rocket and villager Hamburg (un)follow.
To be able to target while holding a bow or spyglass you need to enable touch_use_crosshair in the minetest settings
Testing
Without the commit these items can't be used
With the commit they can be used
Android users without the minetest pr can still play the game with those items in the unusable state
Does anyone know how to make offhand shield work under this new control scheme?
@ -0,0 +35,4 @@
for name in pairs(minetest.registered_items) do
if name:find("hamburger") then
minetest.override_item(name, {
touch_controls = {
This is duplicated 4 times. It would be better as a variable and just reference it.
But on reflection, why are we overriding the item? Can we not just add touch controls to the definitions for these items?
The logic for this is quite expensive, as you'd iterate over item, check for 1 name. Iterate over every item, check for another. Checking for the different names during that iteration would be better, but unless there is a good reason not to, these touch controls could be put on the item. Would this impact on desktop if these were on, or does it just add additional controls to the items?
https://github.com/minetest/minetest/pull/14087 is now merged, with
touch_controls
renamed totouch_interaction
because of reviews.Yes, you can.
This would have no impact on desktop and also no impact on older Minetest versions.