Analog joystick thruster control code for Aurduino Micro or Leonardo.
Purpose: Microcontroller code for secondary thumb joystick to replace pilots tendencies to control vertical and horizontal thrust with the HAT controls. Really, a HAT on a joystick is pathetic. It really is nothing more than 4 buttons. We do not need a HAT Control on a joystick. 1 HAT control on a joystick is 1 HAT control too many. We need this thumb joystick instead and in its place.
I wrote this for Elite Dangerous, but it may also work with other games like Star Citizen and so on.
Requires the Joystick Library code by Matthew Heironimus, available here: https://github.com/MHeironimus/ArduinoJoystickLibrary
Root Source: https://www.instructables.com/id/Arduino-LeonardoMicro-as-Game-ControllerJoystick/