void ConfigJoystick (int n) { int sa; /* buffer value */ char buf[128]; /* input buffer */
printf("\n\n Joystick button and axis configuration:\n\n"); printf(" Select the joystick axes to use for the virtual d-pad.\n"); printf(" If you do not wish to assign an axis, press Enter to skip\n") ; printf(" that axis.\n"); printf(" Push the button to map to the virtual joystick.\n"); printf(" If you do not wish to assign a button, press Enter to skip\n" );