Maps pin 9 to Joystick Button 0, pin 10 to Joystick Button 1, pin 11 to Keyboard key 1, and pin 12 to Keyboard key 2. JoystickKeyboard - Creates a Joystick and a Keyboard. JoystickButton - Creates a Joystick and maps pin 9 to button 0 of the joystick, pin 10 to button 1, pin 11 to button 2, and pin 12 to button 3. MultipleJoystickTest - Creates 4 Joysticks using the library and exercises the first 16 buttons, the X axis, and the Y axis of each joystick when pin A0 is grounded. It exercises many of the Joystick library’s functions when pin A0 is grounded. JoystickTest – Simple test of the Joystick library.
These will appear in the Arduino Example menu when the Arduino Joystick Library is installed. The example Arduino sketch files listed below are included in this library.