Jump to content
The simFlight Network Forums

Starting two Lua Files with on Joystick Button


Airbuspilot

Recommended Posts

Yes, there are two ways to do this. The easiest way is to assign one to be started on the button press, and the second on the button release.

If you want them both assigned on the button press, assign the first one and click ok. Then, open the button assignments panel again, and open your FSUIPC7.ini file in a text editor. Find the line for the assignment you just made to start the first lua, and comment this out by placing a semi-colon after the equals sign. Then, in the button assignments panel, click the 'Reload all buttons' button. You can then assign the button to start the second lua, and click Ok. Open the button assignments panel again, then go back to the editor, reload the updated FSUIPC7.ini file and remove the semi-colon you previously added and save the file. Finally, in the button assignments panel, click 'Reload all buttons' again.

You now have multiple assignments to that button. You can no longer edit/change these via the UI, and only one assignment will be shown greyed-out.

You can have as many assignments as you want on a button or keystroke using this method.

John

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.