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?