(AGK version: 108.16)
Submitted: 2013-08-08 11:27:26
Setvirtualresolution(640,480)
ResetTimer()
//Create an image as an example
swap()
SetPrintSize(48)
Print("+")
render()
GetImage(1,0,0,32,32)
AddVirtualJoystick(1,500,350,100)
SetVirtualJoystickImageOuter(1,1)
SetPrintSize(22)
Do
    Print ("JoyStick X: "+Str(GetVirtualJoystickX(1),2))
    Print ("JoyStick Y: "+Str(GetVirtualJoystickY(1),2))
    Sync()
    If Timer()>25 Then Exit
Loop
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.