Simultaneous tapping Virtual gamepad example (SOLVED)

#1

Hello

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 do not tap on the screen)
Bug steps:

  1. Tap simultaneously in different places.
  2. Release the second point
  3. Release the stick

Thanks in advance and sorry for my english if something is wrong wrote

0 Likes

#2

Hmm, I thought I had updated it to support multi touch. Can you share a link to the example?

0 Likes

#3

Please confirm that something like this works on your device with multitouch https://play.google.com/store/apps/details?id=com.the511plus.MultiTouchTester&hl=en_US

0 Likes

#4

I downloaded here

I watched this source (it uses the same virtual gamepad example)


and in the source of the same bug

0 Likes

#5


I have no problems with multitouch

0 Likes

#6

Multitouch works on Android/iOS build, but does not work in html5. Where are you testing?

0 Likes

#7

I believe @AGulev looked into this. Alexey, did you do any work on multitouch for HTML5?

0 Likes

#8

maybe I do not explain correctly

multitouch works, but if i tap two points on the screen at the same time then there is a bug
https://forum.defold.com/uploads/default/original/3X/0/f/0fe36b953ddd1b66c62e5c8ed8bf386d89c67f20.mp4 https://forum.defold.com/uploads/default/original/3X/3/6/36590ba8508f84247b1a0b68c31284033b9a5fb7.mp4 look at the touch points

0 Likes

#9

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.

0 Likes

#10

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?

0 Likes

#11

I use apk on my android device

1 Like

#12

I found a problem in my example. I’ve pushed an update. @shadowmaikda, please try it again.

3 Likes

#13

I also “productified” the on-screen controls into a reusable module:

With example:

3 Likes

#14

Solved in 1.2.164

0 Likes