Multitouch implementation #315
Unanswered
SideriticTax10
asked this question in
Q&A
Replies: 1 comment
-
|
Hello! Yea, Druid is not designed for multitouch simultaneous controls, but you can handle multitouch controls in specific components if you wish to. Here is example which is should show how you can implement this - https://insality.github.io/druid/?example=ui_example_on_screen_control Basically, you create a custom component, where you will handle all the user inputs manually, with the multitouch support. Usually it requires for small amount of components in your game |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone, I recently got into defold and so far I've been enjoying using this library, I just have a question. Is druid suitable for mobile controls? I tried implementing it but I can't get it to work. Here's a part of my gui_script :
Buttons work on their own with no problems. I added a print statement and debugged my game. Multitouch seems to be registering fine when I don't press any Druid button. (It prints each touch position, but only when I press anywhere on the screen other than a Druid button).
Anyway I've looked into the API and added this to my game.project
And set up my game.input_binding accordingly:
No changes unfortunately. So I just wanted to ask if I'm missing something or is Druid not suitable for handling mobile multitouch controls?
Beta Was this translation helpful? Give feedback.
All reactions