Jump to content
The simFlight Network Forums

Help on Dual Function Buttons


Recommended Posts

I am trying to get dual function out of my buttons on a CH Throttle Quadrant by using a dual key with the CH Yoke. I have assigned one of the red left buttons on the CH Yoke to be a 'Shift +' which works fine. I originally set the CH Throttle Quadrant Button 2 to toggle Panel 3 (this works fine with either FSX assignments or FSUIPC assignments). I have read the Advanced FSUIPC instructions for Combination Buttons and assigned the Yoke Red Button (Shift) + the CH Throttle Quadrant Button 2 as to toggle Panel 7. This also works BUT it will toggle BOTH Panel 3 and 7. How do I get them to work independently? Here is my code for [buttons] in FSUIPC4.ini:

[buttons]

1=R0,14,C65971,0 ; Reverse Thrust Eng1 Throttle1

2=R0,12,C65966,0 ; Reverse Thrust Eng2 Throttle2

3=R1,8,K16,9 ; Top Yoke Red Button as SHIFT

4=R1,9,K17,10 ; Bottom Yoke Red Button as CTRL

5=P0,2,C65908; Throttle Quad Button 2 (FSX-03) for Panel 3

6=CP(+1,8)0,2,C65912,0; Throttle Quad Button 2 (FSX-03) for Panel 7

Any help would be appreciated.

Regards,

Roger Shaw

Lizella, GA

Link to comment
Share on other sites

This also works BUT it will toggle BOTH Panel 3 and 7. How do I get them to work independently? Here is my code for [buttons] in FSUIPC4.ini:

...

5=P0,2,C65908; Throttle Quad Button 2 (FSX-03) for Panel 3

6=CP(+1,8)0,2,C65912,0; Throttle Quad Button 2 (FSX-03) for Panel 7

You have a condition on the control for Panel 7, but not for Panel 3! You simply need the opposite condition on that:

5=CP(-1,8)0,2,C65908; Throttle Quad Button 2 (FSX-03) for Panel 3

See? "+" for "pressed", "-" for "not pressed".

Pete

Link to comment
Share on other sites

Pete:

As the IT Mgr for our company and an old computer programmer, your suggestion makes sense. I should have thought of that. I am just trying to teach myself all the code behind FSX and FSUICP4 plus how it all interacts. As small suggestion opens up a world of understanding.

Thanks,

Roger

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.