MobiFlight Community Support

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! 

icon
Avatar
Bigfoot_Controls
Posts: 1
Hello all, I'm new to the forums, so I hope this hasn't been asked and answered, but I searched the forum and the wiki and couldn't find an answer.

I understand that the Mobiflight firmware allows you to connect various buttons, encoders, and analog devices to the Arduino and use them as inputs in Mobiflight. Is there a way to also use them as a standard HID joystick device? Specifically, I want to make a flaps controller, with servo-controlled indicator, using Mobiflight, but I would also like to be able to use the flaps lever as an input in other games, not just flight sims.

Typically I use STM32 boards with FreeJoy, and I know I could hook the lever up to a FreeJoy board, and the indicator up to a Mobiflight Arduino, but I'd rather get it all done with one board.

Any advice would be appreciated.
2022-11-10 06:35
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
Hi

Yes, this is possible !

As you say already... This is not a good idea for a full input device ... Cause here its much more logical to use a firmware to make a "real" HID Joystick out of the Arduino Board.
If you need it also for Outputs (controlled via Mobiflight) then this is no longer possible.
So the key is to "emulate" a Virtual Joystick within Mobiflight.
Means a Button Press or a Poti will no longer send a comand to sim.... it send a command to the emulator that "simulate" a Joystick that is shown by windows same like a real one.

You need the Software "VJOY"
Install it and define how many Joysticks you need and how many axis and buttons they need to have.
When it run in the back then Mobiflight also see them and you be able to set Inputs in MF to it.

And for sure.... This Joystick ( in windows) is useable for most of Games and Software.
Good Luck !
2022-11-10 14:23
icon