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 / Odd issue with touch events on iPhone 3GS

Author
Message
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 2nd Jun 2014 05:56 Edited at: 2nd Jun 2014 06:28
I'm working on using actual touch events for dFenz instead of pointer presses because on iOS it seems there can be some issues when pressing one edge and then the opposite in quick succession.

So I put in my standard touch event handler and it takes an entire second to register a touch event. So it is like it is only noticing long presses. Even stranger is that I use this same code for Shape Time! and the short presses are picked up without any delay.

I'm using 10821 and completely confused why it isn't working right.
If I include unknown touch events everything seems OK, but I remember having some issues with that for Shape Time, so I don't trust it.

Does anyone else have an issue on iOS with the touch events? It is really confusing me why it will work just fine for Shape Time, but not dFenz or as a standalone test. arrgghh!

Also, when I have more than one touch event the X & Y position of the highest indexed touch event (which I assume is the last one to happen) doesn't return the right x & y. It returns the x & y of the first event.



Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Jun 2014 08:00
Honestly, I wouldn't even worry about the 3GS. Far as I'm aware, it can't even run the latest iOS.

Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 2nd Jun 2014 09:28
Yes, it only goes up to 6.1, but it's the only device I have to test on.
The thing is that the same code works fine in a different game. Not sure what could be changing its behavior. Not a huge deal either because I can safely allow unknown touch events here. In Shape Time I have to differentiate between swipe and short tap so it didn't work there.

xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 2nd Jun 2014 18:34
I don't code for 3GS since September 11 2013.
Do the same, as the reviewer don't use it to test apps anymore.

Long life to Steve!

Login to post a reply

Server time is: 2024-11-25 05:19:02
Your offset time is: 2024-11-25 05:19:02