Plugins for Joystick Gremlin.
The documentation on their website is sparse and outdated, I hope this code can be useful for people looking into that.
See dcs_f16_warthog.py. Mainly used so that the 3-way switches (flaps, and autopilot) emit a key press when they are on the off position; allowing for their state to be similar as in the in-game cockpit.
Some macros in there too.