Thrustmaster: Using Virtual Buttons in TARGET

I have a Viper panel which I’m trying to program just a little using the TARGET software. What I’m trying:

If I move the gear lever up, the three landing gear LEDs should go out and I want the lever’s red LED to light up for 5 seconds, then go out again.
If I move the lever down, the lever’s red LED should light up for 5 seconds, then go out again and the the three landing gear LEDs should then light up green.
Also, each action “pulses” some DX button so I can actually map it to something that makes the gear up/down commands actually work in the sim.

The basics of this are clear, I have this script so far:

	MapKey(&ViperBBox, BB_BTN17, CHAIN( PULSE+DX17, D(), LEDV(&ViperBBox, 19, 1), D(5000), LEDV(&ViperBBox, 1, 0), D(), LEDV(&ViperBBox, 2, 0), D(), LEDV(&ViperBBox, 3, 0), D(), LEDV(&ViperBBox, 19, 0)));
	MapKey(&ViperBBox, BB_BTN36, CHAIN( PULSE+DX36, D(), LEDV(&ViperBBox, 19, 1), D(), LEDV(&ViperBBox, 1, 1), D(), LEDV(&ViperBBox, 2, 1), D(), LEDV(&ViperBBox, 3, 1), D(5000), LEDV(&ViperBBox, 19, 0)));

Thing is, the virtual button QB_BTN36 (gear lever down) or any other virtual buttons won’t trigger anything, even though the virtual buttons are activated in Windows’ game controller settings.

A workaround would be acting on pressing and releasing BB_BTN17 (gear lever up), but distinguishing this apparently also isn’t possible in TARGET.

Does anybody have an idea?

Got one step ahead - if I use scripting, I can do

MapKeyR(&ViperBBox, BB_BTN17, CHAIN( PULSE+DX36, D(), LEDV(&ViperBBox, 19, 1), D(), LEDV(&ViperBBox, 1, 1), D(), LEDV(&ViperBBox, 2, 1), D(), LEDV(&ViperBBox, 3, 1), D(5000), LEDV(&ViperBBox, 19, 0)));

upon release. Never mind the bug about hte landing gear lights going on at the wrong moment, I’ll fix that later - the most interesting part is using “MapKeyR” for “act upon controller button release”.

So this is it now. I also added read landing gear lights during the transistion peroid.

	MapKey(&ViperBBox, BB_BTN17, CHAIN( 
			PULSE+DX17, 
			LEDV(&ViperBBox, 19, 1), 
			LEDV(&ViperBBox, 1, 2), LEDV(&ViperBBox, 2, 2), LEDV(&ViperBBox, 3, 2),
			D(5000), 
			LEDV(&ViperBBox, 1, 0), LEDV(&ViperBBox, 2, 0), LEDV(&ViperBBox, 3, 0), 
			LEDV(&ViperBBox, 19, 0)
	));
	MapKeyR(&ViperBBox, BB_BTN17, CHAIN( 
			PULSE+DX36, 
			LEDV(&ViperBBox, 19, 1),
			LEDV(&ViperBBox, 1, 2), LEDV(&ViperBBox, 2, 2), LEDV(&ViperBBox, 3, 2),
			D(5000), 
			LEDV(&ViperBBox, 1, 1), LEDV(&ViperBBox, 2, 1), LEDV(&ViperBBox, 3, 1),
			LEDV(&ViperBBox, 19, 0)
	));

I still wonder whether I can adress the QB_BTNs somehow.

1 Like