Hello all,
I am currently working on a button box for dcs, using the joystick example as a template.
My question is, if I am using an on-off-on style spdt toggle switch. Is there a way that I can have windows/dcs recognize the central off position as an input?
This is so I can create a key bind for Flaps Auto, Flaps half and Flaps full.
My crude idea is to have an "IF" both pins 0 and 1 are low, output high on pin 2. And then have pin 2 connected to a resistor leading to ground. But I have my reservations about this idea working.
The reason that I am using this style of switch is that I already have them and will be using them for other functions and it being next to impossible to find reasonably priced on-on-on switches.
I am aware that I can beat this behaviour into dcs itself but that would require learning how to edit the control scheme lua files and would only affect individual planes and not be across the board.
I apologise for the lack of code, I am at work so unable to attach any or try my crude idea
Thank you all and have a nice day.
I am currently working on a button box for dcs, using the joystick example as a template.
My question is, if I am using an on-off-on style spdt toggle switch. Is there a way that I can have windows/dcs recognize the central off position as an input?
This is so I can create a key bind for Flaps Auto, Flaps half and Flaps full.
My crude idea is to have an "IF" both pins 0 and 1 are low, output high on pin 2. And then have pin 2 connected to a resistor leading to ground. But I have my reservations about this idea working.
The reason that I am using this style of switch is that I already have them and will be using them for other functions and it being next to impossible to find reasonably priced on-on-on switches.
I am aware that I can beat this behaviour into dcs itself but that would require learning how to edit the control scheme lua files and would only affect individual planes and not be across the board.
I apologise for the lack of code, I am at work so unable to attach any or try my crude idea
Thank you all and have a nice day.
Last edited: