This collection of simple script files are meant to be a test case as to show whether or not TARGET is ready to provide at least an equivalent of the P&P default interactions between Thrustmaster HOTAS and DCS: A-10C.
...and not as simple scripts:
TARGET combines Thrustmaster HOTAS Warthog Joystick and Throttle into a single virtual DXinput Controler named Thrustmaster Virtual Game Controler.
Results is 2 x 32 DXInput buttons replaced by only 32 buttons but with all the ressources of a powerful programming environment to compensate.
Another inconvenience is the loss of the perfectly working plug-and-play combination between the simulator and those two separate devices as they are recognized in the configuration panel.
These files could also be a starting point to introduce complex configurations that would take advantage of the 6 available layers provided by TARGET.
Updated 110428 - Optimized with an attempt at structuring to address more than one layer mapping and event logging.
Then, some usable results with a Cockpit Views Snapping O-Layer functions:
Files also attached into this thread: