Hello,
I had the idea of skipping the part of designing and programming a microcontroller like arduino to make an interface and just modify a joystick into a switchboard to use for avionics, battery, etc. So I opened up an old thrustmaster joystick and resoldered the buttons onto lever switches and gave it new potentiometers then put the whole thing into a case.
It works kind of great but I have some trouble configuring flightgear and map controls onto this "thing". Like in xplane I could select the toggle options from the menu to switch battery and such, that is not the ideal solution either but works. My question is - where should I start configuring it? Do I need to edit the appropriate .xml file? Can I even use lever switches the way they should be done (events on both on and off position) or I should have modified the soldering or the digital logic (flashed ics or something, I'm not even sure what does the joystick entirrely consist of) as well for this to work? I didn't change anything in the joystick connections just resoldered the buttons into lever switches.