My game has two virtual controllers:
How can I make them work with both mouse and multitouch? It seem that when I enable multitouch the “pressed” mouse event stops firing. This is my config:
If I remove multitouch it works with mouse.
My game has two virtual controllers:
How can I make them work with both mouse and multitouch? It seem that when I enable multitouch the “pressed” mouse event stops firing. This is my config:
If I remove multitouch it works with mouse.
As is not uncommon, I figured it out immediately after posting: If I change the “Action” id to be different, it works.
The action id of the mouse is usually called “click”, isn’t it?
Not quite sure what it should be called, I assumed it was arbitrary?
I’m still getting “Mouse Triggers” inputs when touching the screen on mobile. Is that expected?
I think so.
We emulate mouse inputs for mobile devices, just as a friendly help to port single touch input games on device without having to care about multi touch.
You can essentially ignore these if you are going to use multi touch.
That’s what I figured, thanks! I’m checking which system the player is on now to separate web/local testing from mobile.