home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #3.1
/
RBBSIABOX31.cdr
/
kba1
/
joytest.bas
< prev
next >
Wrap
BASIC Source File
|
1990-09-29
|
858b
|
29 lines
10 'JOYSTICK TESTING PROGRAM BY HOWARD SCHELL, NEW YORK, NY
20 'THIS PROGRAM WILL DYNAMICALLY TEST YOUR JOYSTICK OR
30 'DIGITIZING PAD-TYPE DEVICE AND GAME PORT
40 '
50 '
100 KEY OFF
110 CLS
120 PRINT " JOYSTICK TEST":PRINT
130 PRINT " STRIG(BUTTONS)":PRINT
140 FOR I = 0 TO 7
150 PRINT TAB(I*10);I;
160 NEXT
170 PRINT
180 PRINT"___";
190 FOR I = 1 TO 7
200 PRINT TAB((I*10)-0);"___";
210 NEXT I
220 PRINT:PRINT:PRINT
230 STRIG ON
240 LOCATE 14,35:PRINT"COORDINATES"
250 LOCATE 16,30:PRINT"X":LOCATE 16,50:PRINT"Y"
260 LOCATE 17,29:PRINT "___":LOCATE 17,49:PRINT "___"
270 LOCATE 23,1:PRINT"PRESS CTRL-BREAK TO STOP"
280 FOR I = 0 TO 7
290 LOCATE 8,((I*10)+1):PRINT STRIG(I)
300 NEXT I
310 LOCATE 19,29:PRINT STICK(0);" ":LOCATE 19,49:PRINT STICK(1);" "
320 GOTO 280