If so how can I do that?
- Add this to input:
- Add this to init:
msg.post(".", "acquire_input_focus")
- Add this to final:
msg.post(".", "release_input_focus")
- 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
4 Likes
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.
2 Likes
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: Device input in Defold
1 Like