If so how can I do that?
- Add this to input:
- Add this to init:
- Add this to final:
- Add this to action:
if action_id == hash("t") then for i, pos in ipairs(action.touch) do
This is what I use for my multiple touch games
Simple Example Of Multi-Touch On Mobile Devices?
Input not registering when tested
Thanks I’ll definitely try it out
What other methods can I use for this?
You need to iterate through the
action.touch table and check what touch inputs you get, there is no other method.
Can I still work with action.y and action.x using this method?
Each entry in action.touch contains the x and y position of the touch point. See this section in the input manual: https://www.defold.com/manuals/input/#_touch_triggers