pilotjohn Posted July 23, 2011 Report Posted July 23, 2011 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?
Pete Dowson Posted July 23, 2011 Report Posted July 23, 2011 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
pilotjohn Posted July 23, 2011 Author Report Posted July 23, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now