(AGK version: 108.14)
Submitted: 2013-06-30 14:04:46
//This example is for Touch or Virtual Devices Only
Setvirtualresolution(640,480)
ResetTimer()

SetButtonScreenPosition(1,320,240,80)
If GetVirtualButtonExists(1)
    Repeat
        If GetVirtualButtonState(1)=1
            Print("Button Down")
        EndIf
        If GetVirtualButtonState(1)=0
            Print("Button Up")
        EndIf
        Sync()
    Until Timer()>12
EndIf
End
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.