Joystick for Flight Simulator

Arduino sketch to be used on an Arduino which can be programmed as a human interface device (HID) e.g. Arduino Pro Micro ATmega32U4. The sketch uses the library https://github.com/MHeironimus/ArduinoJoystickLibrary to program a joystick to be used for flight simulation games.

The goal is to create a joystick with controls and buttons that are frequently used during a flight e.g. throttle, flaps, landing gear, parking brake. It isn't a replacement of a yoke or rudder controls.