Skip to content

matiaspedelhez/msfs_mouse_yoke

Repository files navigation

msfs_mouse_yoke

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

  1. Download and install Python.

    Make sure to add Python to the Path during the installation (important!)

    add_python_to_path

  2. Download the latest version of the script from the releases section.

  3. Configure the script as you like!

    You can modify the text file 'config.json'

// config.json

{ 
    "master_key": ",",
    "throttle_sensitivity": 20,
    "remember_last_position": true,
    "center_xy_axes_key": "."
}

Usage

  1. Open the file run.bat. If its the first time you are opening it, it will install some dependencies that are required.
  2. To activate the script, press the master_key. Default key is comma ",".

inactive_state

Settings in detail

  1. "master_key": "," | The key for turning on/off the script.
  2. "throttle_sensitivity": 20 | How many scroll-wheel steps are required to go from 0% to 100% throttle.
  3. "remember_last_position": true | If true, the position of the yoke will be remembered when you switch on/off the script.
  4. "center_xy_axes_key": "." | The key for centering the yoke axes.

Keep in mind that...

  • When you are setting up the bindings in the game, I recommend removing ALL bindings that are set by default for xbox controllers, and leaving only the axis that you need (which are only two).
    image

  • Clear all the "filters" that the game adds to the xbox controller. Leave it as raw as you can.
    image

Happy flying!