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 / About GetRawTouchType, there is no introduction at event type in the documents.

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 12th Nov 2011 10:06 Edited at: 12th Nov 2011 10:19
I really need to know short event, hold event ,or drag event number.

Basically, I want to know about multi-touch API.

The Miracrea Games
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 14th Nov 2011 00:37
Yea, me too.
I found out some by just trying it out.

Here's what I found:

Short Event = 1
Drag Event = 3

These were enough for me to do the routines I needed; I guess hold event is 2 then?

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Nov 2011 18:24
correct, 1=short, 2=hold, 3=drag, and 0=not yet decided (these are filtered out unless you specifically ask for them with GetRawFirstTouchEvent)
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 13th Dec 2011 07:43
Quote: "these are filtered out"


how to understand this sentence? Is it means than I don't need to know them usually?

The Miracrea Games
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Dec 2011 18:17
It means they will eventually become one of the other types (1, 2, or 3) so you don't normally need to handle them. However since it may take some time for it to be decided (up to a second in the case of a hold event) if you just wanted to know "has the screen been touched" you can ask for the unknown events, and you'll be notified as soon as they occur.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 21st Dec 2011 16:41
If someone could post this in the issues board, I can assign it to Mike so it goes into the next documentation build at: http://code.google.com/p/agk/issues/list

I drink tea, and in my spare time I write software.

Login to post a reply

Server time is: 2024-11-22 20:39:44
Your offset time is: 2024-11-22 20:39:44