d
= _DEVICES ' use devices to get basic information on the joysticka
= _LASTAXIS(3) \
2 ' such as how many AXIS that it may have' (We half the number of reported AXIS, as devices uses a different axis
' for left/right, up/down, and STICK uses one index, with a second parameter,
' as you can see from the code below.)
b
= _LASTBUTTON(3) 'And here, we subtract one, as STRIG starts counting at 0, and devices starts counting' at 1.
PRINT "AXIS:", "L/R", "U/D" ' if we call STRIG with even parameter we read if button state changes IS IT CHANGED?
' if we call STRIG with odd parameter we read how is the state of button IS IT DOWN?