Configuring the input
Encoders are typically mapped to simulator variables that increase and decrease in value. The following steps demonstrate how to configure a single encoder to adjust the Cessna 172 autopilot heading value in Microsoft Flight Simulator 2020 and Microsoft Flight Simulator 2024.
Tip
The steps for using an encoder with X-Plane are similar. Use the X-Plane DataRef type when configuring the Sim Variable tab.
Create a new row in the inputs tab of the main window
Double-click on the bottom row where the description says Double-click row to add new config… and enter a description for the input. For example, enter AP - Heading for an encoder that will control the autopilot heading value.
Open the input configuration dialog
Click the button with three dots in the Edit column for the row created in the previous step.
Select the board and device for the input
On the Input tab, use the Module and Device dropdowns to select your connected board and encoder.
Alternatively, press the Scan for input button and rotate the encoder to automatically detect and select the correct encoder.
Set the On Left action type and filter the presets list
On the Input tab, select the On Left input setting tab. Use the Action Type dropdown to select Microsoft Flight Simulator. Then use the Filter Preset List dropdowns to filter by Microsoft, Generic, and Controls.
Select the heading decrement preset
Use the Select Preset dropdown to select the AP_HDG_VAR_DEC preset.
Configure the On Right action
Repeat steps 4 and 5 for the On Right tab, selecting AP_HDG_VAR_INC for the preset.
Close the dialog and try it out
Click the OK button to close the dialog, then spawn an airplane in Microsoft Flight Simulator.
Make sure the MobiFlight Run button is clicked in the toolbar, then try adjusting the autopilot heading with the encoder. The heading value in the simulator should increment and decrement.
Tip
Even though these steps are for a Cessna 172, the same heading input events should work for most planes in Microsoft Flight Simulator.
Tip
If the encoder triggers the opposite event, where rotating clockwise activates the On Left event, it means the pins were configured backwards in the MobiFlight Modules dialog. To fix this, edit the device in the MobiFlight Modules dialog and press the Swap button to swap the pin assignments for the left and right pin.