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)
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