2 * simple joystick test program
10 /*#define printf_to_use xxprintf*/
11 #define printf_to_use cprintf
13 void xxprintf(char *string)
17 while (*(string + i)) cputc(*(string + i++));
26 printf_to_use("Enter joystick # (0-3): ");
29 } while (c < '0' && c > '3');
32 printf("using joystick #%d, 'q' to quit\n",j);
37 if (c == 'q' || c == 'Q')
49 printf_to_use("DOWN ");
55 printf_to_use("LEFT ");
61 printf_to_use("RIGHT ");
68 printf_to_use(" FIRE ");