mirror of
https://github.com/mbirth/gwbasic.git
synced 2024-12-25 12:04:08 +00:00
Added JOYTEST.BAS.
This commit is contained in:
parent
0c59db1856
commit
a8708bd955
15
JOYTEST.BAS
Normal file
15
JOYTEST.BAS
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
10 CLS
|
||||||
|
20 PRINT"Joystick A"
|
||||||
|
30 PRINT USING"X ###";STICK(0)
|
||||||
|
40 PRINT USING"Y ###";STICK(1)
|
||||||
|
50 PRINT USING"Button A ##";STRIG(0)
|
||||||
|
60 PRINT USING"Button B ##";STRIG(4)
|
||||||
|
70 PRINT
|
||||||
|
80 PRINT"Joystick B"
|
||||||
|
90 PRINT USING"X ###";STICK(2)
|
||||||
|
100 PRINT USING"Y ###";STICK(3)
|
||||||
|
110 PRINT USING"Button A ##";STRIG(2)
|
||||||
|
120 PRINT USING"Button B ##";STRIG(6)
|
||||||
|
130 IF INKEY$=CHR$(27) THEN END
|
||||||
|
140 LOCATE 1,1:GOTO 20
|
||||||
|
|
Loading…
Reference in New Issue
Block a user