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.



OK.
I Understand.
Badly i never tested this, cause the Vjoy Feature comes years ago to support "Buttons"..... that time MF not work with Potis ( Poti comes some months ago).
So the feature in the Vjoy PlugIn to controll Axis was just a "side trash" that have no usage..... So we never care about it.
BUT..... I think it can work !
I remember to test the Axis Controll with ( that time) only posibility by Button Inputs..... Means i write with a Button for testing "1" or "800" to the Vjoy Axis Input..... And it change the axis correctly to that spot!
Means.... i think it work also today with Poti !
Please try out.....
Build a INPUT Config. Use as Device a Poti that is connected to your Mega! ..... Use as "Typ " the VJOY System and define a axis.
In the Value Field you use the "@" symbol ( That represent the current Poti Value in a range of 0-1024 )
So...
1. Confirm the Poti work in this idea.
2. If it work but range is not correctly..... Then we need to know the exact "Vjoy" Range and than we need to recalc ( by formula) the 0-1024 into the Vjoy Range.
e.g. if Vjoy need 0-16383 we simply say @*16 in the value line....
If Vjoy need Negative and positive like -16383 to +16383 ..... then we say @*32-16383.
I hope you understand !
Please report experience !
Additional Note :
Think about usage, please.
If i understand right you use Mobiflight to transfer Button and Poti Commands ( Via Vjoy) to FSUIPC to run/handle your LUA Script.
THIS is a unneeded Bypass..... and Bypasses are always a mess and bad thing in case they cost time and resources.
So without know the whole project i can not give yoBu a advice..... BUT.... think if this is logical.
If you build a "HID Joystick" e.g. by a LeoBodnar or a verry cheap "Arduino Joystick Sketch" ...... then your Poti and Buttons would be work directly as a HID device you can use in FSUIPC ( within your script) directly......
Then Mobiflight and Vjoy just as a "transmitter" would be no longer needed !
For sure.... If we talk just about one single Input ( and all others are done within MF directly) then a additional Mega is not logical..... But if these are multiple elements.... Think about a own HID!

