how does this fare for you?
SetWindowSize( 640,360, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 640,360 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
Touch2 = CreateSprite(0) : SetSpriteSize(Touch2,128,128)
SetSpritePositionByOffset(Touch2,320,180) : SetSpriteVisible(Touch2,0)
do
If GetRawTouchCount(1) > 0
Touches = GetRawTouchCount(1)
For x = 1 to Touches
Print("Touch " + STR(x) + " (" + STR(GetRawTouchTime(x)) + ") : " + STR(GetRawTouchType(x)) )
If GetRawTouchTime(1) < 1.0 then SetClearColor(128,0,0) else SetClearColor(0,128,0)
If Touches > 1
SetSpriteVisible(Touch2,1)
If GetRawTouchTime(2) < 1.0
SetSpriteColor(Touch2,0,0,128,255)
else
SetSpriteColor(Touch2,0,0,255,255)
EndIf
Else
SetSpriteVisible(Touch2,0)
EndIf
Next x
Else
SetClearColor(0,0,0)
SetSpriteVisible(Touch2,0)
Print("Touch Screen")
EndIf
Sync()
loop
that said, given the supporting commands, you can declare what constitutes a touch, hold, drag, slide, double-tap or any other gesture you can come up with based on "whatever" touch properties you like (without relying on AGK/OS determination of touch type).
this is, of course, assuming that there is no further conflict in
manually retrieving Time/X/Y properties to make those determinations. if there is, i'd declare it a bug on
the repo.
note: i don't have an iOS device to test on, so...