MouseYoke for MSFS (github)
This is a small script written in Python that lets you fly with your mouse in Microsoft Flight Simulator 2020. (Why is this not implemented in the game yet?).
How does it work?
The script is always listening for the mouse position and it transforms that into an xbox controller input. It also listens for the scroll wheel position, that way, you can use it as a throttle.
Installation
You MUST have Python installed on your computer to run the script. You can find Python here.
Even though the process is relatively straightforward, I made a video showing step-by-step how to install the script. Have a look at it here!
But if you prefer to read...
1. To run the script, just open the file run.bat. The first time you open the file, it will take 1-2 minutes because it will install some dependencies that are necessary for it to run properly. After the first time, it will open almost instantly.
2. Set the bindings in the game. When you're doing so, make sure to remove ALL bindings that are set by default for xbox controllers, and leave only the axes that you need (which are only three). #Refer to picture 2.
3. Clear all the "filters" that the game adds to the xbox controller under the sensitivity tab. Leave it as raw as you can. #Refer to picture 3.
Done!
You can modify the "master_key" key inside config.json to turn on or off the script. Currently, it doesn't support key combinations such as shift+s.
// config.json
{
"master_key": ",",
"throttle_sensitivity": 20
}
You will also find "throttle_sensitivity". It lets you set how many steps your throttle will have. The default value is 20, so each step would equal 5% of thrust.
Note: This script doesn't require any external software, like vJoy or Virtual Controller.
Future updates:
- Making an in-game tool (widget) is currently being analized.
If you enjoy the stuff that I do and you want this mod to be updated over time, you can always buy me a coffee!
Donate on PayPal Buy me a coffee
Happy flying!
My only problem is that the throttle also pans the world map and it doesnt reset back to 50. Maybe change the throttle axis to the former rudder control?
I'm currently looking for some other options. If the ingame one comes out i will more than likely switch back 😊
2 months ago
AJ8967
3 months ago
CristianS
4 months ago
2 months ago
AbdooMohd
Genacenter2005
5 months ago
Danivks
6 months ago
bruh13572468
7 months ago
Luki
8 months ago
PGT3250
9 months ago
9 months ago
matiaspedelhez
kiwicat
Hello, I have been getting a problem with the script, will help me lot if you please provide me with the solution. So the problem is that I am not able to use the script in the background. The command box has to be in the msfs window and doesn't work in the background. It doesn't listen to the keys and mouse once the window is minimized.
10 months ago
Zama22
Hi
It helps me a lot as disabled who cannot use a joystick. I basically use your script 1h a day since 3 months 😊 Thanks a lot
But I m having trouble flying level whenever I resume after any "script pause" (virtual cockpit buttons mouse use, using the GTN750, LittleNavMap, FSRealistic, VAC charts...). When I resume the script it sends a new value input, different to the one it had few seconds before (when I pressed the key for pausing).
Can you please try to work around it ?
Getting a second key to reset to zero the axis ?
My html/css knowledge is light to tackle it efficiently, and I m not sure I m ready to try chat gpt on that either ;D
Thank you again
Me
11 months ago
Hi Mistral33, thank you so much for leaving a comment and for your feedback! It's super heartwarming to hear the use case you have :)
Let me tell you that I am currently working on releasing a new, more polished version of the mod with cleaner code, a nice UI, and various additions based on user feedback. However, the development is progressing slowly due to other commitments I have to attend to.
As it is for now: I edited the mod by adding a way to reset the axes to zero, and also now the mouse cursor remembers its last position. Remember to edit the config.json file and assign a hotkey for centering them.
Hope you find it useful :)
Best,
Matias
11 months ago
matiaspedelhez
Mistral33
Hi Would it be possible to use the mouse as collective yoke axis for helicopters ?
1 years ago
pilote5962
Hi and thanks!
If I may ask, how hard would it be to you to write a similar program, but one that would enable the SIM to recognize the mouse wheel as an axis, so we could use the mouse wheel as a trim wheel and maybe a button or a key to reset the trim wheel to a zero?
I believe even more people would love/be able to use it because almost everybody have some kind of joystick or controller, while only few have a proper trim wheel?
Many thanks!
1 years ago
Hi Bartul! Thank you so much for leaving a review!
For the time being, the scroll wheel is recognized as an axis in the game and can be used as trim. What I would recommend is increasing the sensitivity in the config.json file so you can make more precise adjustments to the trim.
The only thing that I would have to implement is a way to center that axis, so it wouldn't be a difficult thing to do. Actually, I find it great as an addition to a future update.
Let me know if you have something else you want to see in the future.
1 years ago
matiaspedelhez
Bartul
I already use vjoy to use mouse yoke so does this program have any advantage over vjoy?
1 years ago
Hi KronosAvi! The idea behind this script is to be easy to set up. If you use vJoy, you have to also install Virtual Controller and configure them both so they work together, and every time you want to play, open the two. This is a single script, and it comes almost ready to use, you just have to calibrate and bind the axes to the game.
1 years ago
matiaspedelhez
KronosAvi