Jump to content
The simFlight Network Forums

FSUIPC State Switch?


Recommended Posts

Is there anyway to accomplish a state/setting switch based on a key/joystick press? What I'm trying to accomplish is to use something like a "mode selector" to use one single switch to start selected engines. Similar to "Shift E+1..4" in FSX, the idea is to press something like Shift+1 (or a joystick button) which would load settings in FSUIPC that would cause the magneto switch on my panel to act on Engine1, and then press Shift+2 (or another joystick button) which would load another settings profile that would be configured to act on Engine2. Or is there some other way someone can suggest to configure this behavior?

Link to comment
Share on other sites

Is there anyway to accomplish a state/setting switch based on a key/joystick press? What I'm trying to accomplish is to use something like a "mode selector" to use one single switch to start selected engines. Similar to "Shift E+1..4" in FSX, the idea is to press something like Shift+1 (or a joystick button) which would load settings in FSUIPC that would cause the magneto switch on my panel to act on Engine1, and then press Shift+2 (or another joystick button) which would load another settings profile that would be configured to act on Engine2. Or is there some other way someone can suggest to configure this behavior?

You are making it sound more complicated talking about loading different settings. What you want is simply conditional actions on buttons.

You can have buttons or switches doing different things based on the state of other switches or buttons, or flags set or cleared by them, or on the state of FSUIPC offset values. There are examples in the Advanced User's manual for FSUIPC and probably a few around in the User Contributions subforum.

You can't do this sort of stuff in the user interface. It means editing the FSUIPC INI file.

The ultimate in flexibility is to use a Lua plug-in, which is executed by your button or switch, and which keeps track of everything. But that's a little like "programming" which seems to frighten most folks. ;-) But you may want to look at and try the Lua plug-in example provided called "tripleuse.lua" which shows how one button can be used for three different purposes by single quick press and release, a double click, and a press and hold.

Regards

Pete

Link to comment
Share on other sites

You are making it sound more complicated talking about loading different settings. What you want is simply conditional actions on buttons.

You can have buttons or switches doing different things based on the state of other switches or buttons, or flags set or cleared by them, or on the state of FSUIPC offset values. There are examples in the Advanced User's manual for FSUIPC and probably a few around in the User Contributions subforum.

You can't do this sort of stuff in the user interface. It means editing the FSUIPC INI file.

The ultimate in flexibility is to use a Lua plug-in, which is executed by your button or switch, and which keeps track of everything. But that's a little like "programming" which seems to frighten most folks. ;-) But you may want to look at and try the Lua plug-in example provided called "tripleuse.lua" which shows how one button can be used for three different purposes by single quick press and release, a double click, and a press and hold.

Regards

Pete

Thanks... I just posted another questions, but likely the same answer applies.

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.