Great info, it has been very helpful, thank you. I'm stuck on my ignition cover switch for the p-51. I'm using an (on) - off - (on) switch with a red flip down cover. When the cover is down it activates the bottom (on). In the sim this opens the cover, but I want it to close. This is the line I'm working with: joy btn5 is the bottom (on) i.e. momentary
{combos = {{key = "JOY_BTN5"}, }, down = 3010, up = 3010, cockpit_device_id = 15, value_down = 1, value_up = 0, name = "Starter Switch Cover", category = "Engine Control Panel"},
I also tried:
{combos = {{key = "JOY_BTN5"}, }, down = 3010, up = 3010, cockpit_device_id = 15, value_down = 0, value_up = 1, name = "Starter Switch Cover", category = "Engine Control Panel"},
Changing value_up = 1 or 0 seems to have no affect? I thought it would reverse the in game action of the cover but it does not. Any thoughts, thanks. (using gpwiz40 i/o)
Did some more playing around. I noticed that. When I start the sim the cover flips open, then I have to press the "starter" JOY_BTN3 twice, the first time fixes the in game cover, the second time actually activates the starter and then everything works as it should, including the cover. So it looks like the initial on state of the cover is what I need to change, any thoughts?