It is possible to use compound button conditions on button assignments, where the assignment to a button can change depending upon the state of another button. However, this is not directly possible with axis assignments.
However, it is possible to use compound axis assignments by using a lua script.
Then save the following as, say, "multiaxis.lua" in your FSUIPC installation (or LuaFiles) folder:
function applyaxis(val)
cntrl = ipc.readUD(0x66c0)
ipc.control(cntrl,val)
end
event.param("applyaxis")
[/CODE]
and edit the FSUIPC INI file, adding this section:
[Auto]
1=Lua multiaxis
(if you already have an [Auto] section, add the line with the next available number).
Now run FS. Go to FSUIPC axis assignments and assign the axis you want to switch as an "FS control", choosing this one from the drop-down list:
Luavalue multiaxis
Then go to the Buttons assignments and assign the buttons you want to use for selecting the axis use, on the right-hand side, as follows:
Offset dword set, with Offset x66c0 and the Parameter set to the value of the FS or FSUIPC control you want the axis to send.
The controls are listed in a List installed in your FSUIPC Documents folder. You can use any control, but obviously only axis controls make much sense. Those are all either named "Axis ..." or end in "set". There are more controls, added by FSUIPC, and listed in the FSUIPC Advanced User's guide.
Once you've done all this, exit to FS, select a mode using the buttons/switches you assigned above, then go into FSUIPC joystick calibrations and calibrate the axis for that selection. You'll need to exit to change the mode to calibrate each separately -- FSUIPC doesn't obey the button presses when in the options (for pretty obvious reasons).
Note that this technique is extensible for any number of different uses for the same axis and, by using different offsets (66C4 is the next -- the range 66C0 to 66FF is free for users, giving 16 possible DWORDs to use) and renamed versions of "multiaxis.lua", can be applied to any and all axes.
I've tested all this with FSUIPC and FSX. Have fun!
Regards
Pete
Posted : November 12, 2025 3:00 pm