Syntax: |
JOYSTATE jx##, jy##, jba##, jbb## |
Sets the values of jx## and jy## to the current joystick position. jba## and jbb## represent the states of the buttons A and B. (1=Pushed, 0=Released) -1 = Left / Up 0 = No Direction
+1 = Right / Down |
Sample: |
// End with ESC WHILE 1=1 // Endless loop a$=”JX:” + jx + “ JY:” + jy + “ ButtonA:” + ba + “ ButtonB” +jb PRINT a$, 10, 100 SHOWSCREEN
WEND |
|