Jump to content
The simFlight Network Forums

Conditional Axes/Button Programming


Alhard Horstmann

Recommended Posts

Hi, in MSFS I use the Joystick for elevator and aileron as usual.

In the drone mode I can use my Jostick also for moving the drone back and forth , left and right,

With MSFS Controls this works perfect cause MSFS knows if I am in drone mode or in normal fligth mode.

Question: How can I do this with conditional axes programminmg and FSUIPC7?   Or with LUA?

 

Link to comment
Share on other sites

  • Alhard Horstmann changed the title to Conditional Axes/Button Programming

You don't need to use conditional programming for this (and there is no such thing as conditional programming for axes anyway) - you can just overload your assignments, i.e. have multiple assignments for the same axis. Even though the multiple assignments are sent, only the ones appropriate to the current view mode will be acted upon.

Note also that you cannot control any camera in MSFS using the standard controls/events. You have to assign to the keypress which is assigned to the camera control in MSFS. I recently showed how to do this for the external camera on an axis in another post - showcase/drone should be similar.

But if it works perfectly in MSFS, why nor just leave the assignments there?

FYI, the current camera state is held in offset 0x026D, which will change depending on the view mode.

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.