Complementary buttons

Moderator: AdminGroup

gregd99
Posts: 3
Joined: Fri Feb 04, 2022 4:00

Complementary buttons

Postby gregd99 » Fri Feb 04, 2022 4:05

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

User avatar
fallout9
Posts: 5211
Joined: Wed Oct 03, 2018 20:37
Has thanked: 208 times
Been thanked: 1224 times

Re: Complementary buttons

Postby fallout9 » Fri Feb 04, 2022 8:12

Better try Toggle function.

gregd99
Posts: 3
Joined: Fri Feb 04, 2022 4:00

Re: Complementary buttons

Postby gregd99 » Sat Feb 05, 2022 6:05

Thanks for the feedback.
The idea I put forward sent continuous commands to the sim.... so not a great idea.

rtrski
Posts: 280
Joined: Mon Sep 11, 2017 0:20
Has thanked: 101 times
Been thanked: 135 times

Re: Complementary buttons

Postby rtrski » Sun Feb 06, 2022 16:35

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.
RH VKB GF Mk III + Modern Combat Grip *ULTIMATE* (12/17 GFII , upgraded), _powered_ deploy!
LH VKB GF Mk III + Kosmosima Prem (02/19 GFII, upgraded), *lateral* mounted
Feet: Slaw Viper RX Pedals [Sorry, VKB, too gorgeous]

Bambers
Posts: 4
Joined: Sun Sep 05, 2021 13:02

Re: Complementary buttons

Postby Bambers » Sun Feb 06, 2022 20:54

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.


Return to “Manuals and Howtos”

Who is online

Users browsing this forum: No registered users and 8 guests