I tried using britzl’s virtual gamepad example, but I ran into a problem. When I tap simultaneously two points on the screen, the stick stops coming back.
I tried to check if the stick was released and when I saw the bug, then only one touch point was released (one message is released)
This only happens when the tap was at the same time. But I want to use it in my project.
Not really. I have it in my backlog for exploration day (not sure that it is possible to finish in exploration day. @sven knows input system better and could estimate this issue more accurate, I think).
As I understand, you are testing it in native (not html5) bundle?
i am still running into the same problem, multiple taps make the analog or buttons hang or “get stuck” … am using defold 1.2.166 (got version from “help” menu -> about), onscreen.lua module from the current defold-input master, and the example scripts.
also, sometimes the buttons or analog stick react for about 2 to 3 seconds and then trigger a released although i am still holding the button and or stick … happens on laptop, tablet and phone.
2 fingers … its 1 analog and 2 buttons, simple shooter, analog to turn ship and a button each for thrust and shooting
this happens randomly when app starts up on phone … i start the app, hit and hold the fire button but the shots for example stop after a few seconds … then when i release the button and press it again,ship shoots for a few seconds and stops again. same with the analog button. i close the app on the phone, restart it and all works exept the hanging thingy
no touch on laptop, i can’t reproduce the stuck issue, and so far the buttons or the stick don’t do that thing where they release after a few seconds although they are pressed …
laptop is running linux