Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Trouble with multitouch on android

Author
Message
basicFanatic
6
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 24th Apr 2020 15:39
If the player is touching with two fingers, then the act of lifting his fingers causes the registered touch XY position to change. Is there any way to avoid this?

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Apr 2020 17:58 Edited at: 24th Apr 2020 18:02
using the actual Multitouch commands should help where you can keep track of touch events, types, releases, etc.

otherwise, i think you're expecting some "multi-pointer" functionality from your code while there can only be 1 pointer.
basicFanatic
6
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 25th Apr 2020 10:02
Thanks! I tried setting the finger update on pause for 0.05 second when it goes from 2 fingers to 1 finger. That way, it keep the registered position when the player lift both fingers. Seems to work!

Login to post a reply

Server time is: 2024-03-28 09:35:14
Your offset time is: 2024-03-28 09:35:14