PT
Developer Forums
Register
Login
[Archived] AppGameKit Classic Chat
->
About GetRawTouchType, there is no introduction at event type in the documents.
<
1
>
H
halley
Joined:
27th Apr 2011
Location:
China
Posted:
12th Nov 2011 10:06
I really need to know short event, hold event ,or drag event number.
Basically, I want to know about multi-touch API.
N
nz0
Joined:
13th Jun 2007
Location:
Cheshire,UK
Posted:
14th Nov 2011 0: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?
P
Paul Johnston
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)
H
halley
Joined:
27th Apr 2011
Location:
China
Posted:
13th Dec 2011 7:43
these are filtered out
how to understand this sentence? Is it means than I don't need to know them usually?
P
Paul Johnston
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.
L
LeeBamber
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