Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.
You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks!
The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!
See you on our MobiFlight Community Discord server.
A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.
The forum is still providing a lot of good content, hence we keep this information accessible.




Hi kingofpain
So I wanted to do exactly the same as you... and managed to "bodge" a way of making an encoder push action a toggle for managed / selected modes
here's how (repeat for each encoder / attribute):
STEP 1
in the output tab create a new output - Call it say "ALT TOGGLE PRECONDITION" and set it up as follows:
- Offset = 0x66C2 (if your not using it already ... or any other user offset)
- Value Type = Int size = 1
- Mask = 0xFF
STEP 2
now create a new input - called "ALTTOGGLE FLIP FLIP" and set as follows:
- On press
- FSUIPC OFFSET
- Offset = 0x66C2 (or what you used above)
- Value Type = Int Size = 1
- Mask = 0xFF
Set Value = if($=0,1,0)
STEP 3
now create a new input - called "ALT MANGED" and set up as follows:
in the precondition tab, tick the box by NONE then
- Use Type = Config Item
- Choose Config = ALT TOGGLE PRECONDITION (or the name you gave it in Step 1
- if current value is = "=" (equals) "1"
In the input tab set as follows:
-On press
- Action Type = Event ID
- EventID = 68067 (Altitude) i think speed was 68066 maybe
- Param = 2
STEP 4
now create a new input - called "ALT SELECTED" and set up as follows:
in the precondition tab, tick the box by NONE then
- Use Type = Config Item
- Choose Config = ALT TOGGLE PRECONDITION (or the name you gave it in Step 1
- if current value is = "=" (equals) "0"
In the input tab set as follows:
-On press
- Action Type = Event ID
- EventID = 68067 (Altitude) i think speed was 68066 maybe
- Param = 1
If all goes well this should have created a toggle push button that will flip flop between managed / selected
Let me know if you need screenshots etc