I am trying to map the integrated lights dials in the A320 to the physical slider on my WinWing Ursa Minor joystick, I came across a Fenix support page that includes the script to map all integrated lights in the cockpit and read their value, however the example mapped them to an X-Touch mini encoder and seemed to use a regular button mapping (https://support.fenixsim.com/hc/en-us/articles/12466468901135-Example-of-How-to-Bind-Switches-Knobs-and-Buttons-on-FenixSim-Aircraft-to-External-Hardware#:~:text=In Axis And Ohs%2C all,A_FCU_LIGHTING%2C·Number)·}😞
(L:A_FCU_LIGHTING,·Number)·1·<·if{·(L:A_FCU_LIGHTING,·Number)·0.1·+·(>L:A_FCU_LIGHTING,·Number)·}
(L:A_OH_LIGHTING_OVD,·Number)·1·<·if{·(L:A_OH_LIGHTING_OVD,·Number)·0.1·+·(>L:A_OH_LIGHTING_OVD,·Number)·}
(L:A_PED_LIGHTING_PEDESTAL,·Number)·1·<·if{·(L:A_PED_LIGHTING_PEDESTAL,·Number)·0.1·+·(>L:A_PED_LIGHTING_PEDESTAL,·Number)·}
And the code for decreasing them (separate script!):
(L:A_FCU_LIGHTING,·Number)·0·>·if{·(L:A_FCU_LIGHTING,·Number)·0.1·-·(>L:A_FCU_LIGHTING,·Number)·}
(L:A_OH_LIGHTING_OVD,·Number)·0·>·if{·(L:A_OH_LIGHTING_OVD,·Number)·0.1·-·(>L:A_OH_LIGHTING_OVD,·Number)·}
(L:A_PED_LIGHTING_PEDESTAL,·Number)·0·>·if{·(L:A_PED_LIGHTING_PEDESTAL,·Number)·0.1·-·(>L:A_PED_LIGHTING_PEDESTAL,·Number)·}
I recreated the scripts in my AAO but can't figure out how to map them to the slider axis through the add axis (or how to map the axis to a button). I am completely lost it this point. Any help would be very much appreciated.
Lior