Page 1 of 1

Complementary buttons

Posted: Fri Feb 04, 2022 4:05
by gregd99
Hi,
I would like to have two logical buttons, which are the complement of each other.

By using altButton I have one button which is push-on, push-off. Call this Button "A".
I then thought to use boolean to set another logical (virtual?) button to the inverse of "A". e.g. B = inverse of A.A.

This seems sound but I get no action on B.

Any thoughts would be appreciated.

Thanks.
Greg

Re: Complementary buttons

Posted: Fri Feb 04, 2022 8:12
by fallout9
Better try Toggle function.

Re: Complementary buttons

Posted: Sat Feb 05, 2022 6:05
by gregd99
Thanks for the feedback.
The idea I put forward sent continuous commands to the sim.... so not a great idea.

Re: Complementary buttons

Posted: Sun Feb 06, 2022 16:35
by rtrski
Which sim/game? Maybe someone will have an alternative idea.
I know for example Elite Dangerous offers the option to "Toggle" or "Hold" on several functions in their own in-game mapping. For example I use cargo scoop as my 'flip-up' trigger on the MCG-Ultimate, using "Hold". So flip trigger up, the button press is sent continuously but that's necessary to keep my scoop open, then it closed when I flip down.

Re: Complementary buttons

Posted: Sun Feb 06, 2022 20:54
by Bambers
See also 'SwitchCB' for a slightly different alternative (while held rather than toggled).

Regardless, to prevent the continuous input you will need to use a boolean to 'feed' the logical button back to a spare slot in the physical/virtual layer. Then assign that button with a generator function so it just sends a single pulse.