Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Can someone help us? We have tonight installed/registered fsuip into FSX. We want to program switches which are on/off in nature. All we can see in the fsuip buttons+switches programming page is buttons and we can only get our switches to toggle (ie the on positions switch on and off alternately. We want the switches to be on when turned to the on position and off when in the off position (ie not toggling). Is there any way we can do this?

Thanks for any help.

Mike & Brian

Posted
Can someone help us? We have tonight installed/registered fsuip into FSX. We want to program switches which are on/off in nature. All we can see in the fsuip buttons+switches programming page is buttons and we can only get our switches to toggle (ie the on positions switch on and off alternately. We want the switches to be on when turned to the on position and off when in the off position (ie not toggling). Is there any way we can do this?

Buttons and switches are identical except for the latching. In FSUIPC you can program the "Press" (which is also, for a latching switch, the "on" position), and the "Release" (the "off" position) independently.

FSUIPC allows you to assign to any of the FS controls (defined and named in its CONTROLS.DLL -- that's there FSUIPC gets them from), as well and quite a few additional ones created and added by FSUIPC.

Some of these controls are Toggles, some have "ON" and "OFF" variants, and some have "SETS" (when a parameter determines the actions). In some cases all 4 variants are available. If what you want to do only has a toggle control then you either have to program it for both your "on" and "off" positions, and just make sure things are in sync to start with, or use an alternative method. One alternative which is usually viable is using the Offset controls added by FSUIPC to actually change the variables inside FS directly. For example, offset 0D0C is a Word offset containing a bit for each of 10 separate light switches. Using "offset word setbits" and "offset word clearbits" with offset x0D0C and different parameters you can implement ten on/off light switches.

If you want to get into this area you'll need the FSUIPC SDK as well, because that contains the complete documented list of offsets.

Regards

Pete

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.