A joystick UDF, requires beta >= 3.1.1.18
#include <GUIConstants.au3>
Local $joy,$coor,$h,$s,$msg
$joy = _JoyInit()
GUICreate("Joystick Test",300,300)
$h= GuiCtrlCreatelabel("",10,10,290,290)
GUISetState()
while 1
$msg = GUIGetMSG()
$coor = _GetJoy($joy,0)
$s = "Joystick(0):" & @CRLF & _
"X: " & $coor[0] & @CRLF & _
"Y: " & $coor[1] & @CRLF & _
"Z: " & $coor[2] & @CRLF & _
"R: " & $coor[3] & @CRLF & _