Joysticks - MobiFlight/MobiFlight-Connector GitHub Wiki
[!CAUTION] This guide is obsolete. See the updated guide for information on using joysticks with MobiFlight.
MobiFlight can also work with your Joysticks and you can assign MobiFlight actions to buttons, axis and hat switches. For the Honeycomb Bravo you can also assign the lights as Output Configs.
Settings
Settings dialog is opened via Extras -> Settings -> Peripherals
.
- General joystick support can be enabled/disabled.
- Single joysticks can be excluded by removing the checkmark in the active joysticks list.
Inputs
Joysticks are listed as individual "Modules" next to any connected MobiFlight Board in the Input Config Wizard.
When a joystick is disconnected during MobiFlight execution, MobiFlight will remove the Joystick from the internal list of devices for the rest of the MobiFlight session. You will have to restart MobiFlight to pick up any newly connected or re-connected Joystick.
Joystick Buttons
MobiFlight treats Joystick similar to regular MobiFlight Buttons. This means that you can assign any MobiFlight action to either "OnPress" and "OnRelease" event.
Joystick Axis
MobiFlight treats Joystick similar to regular MobiFlight Analog Inputs. This means that you can assign any MobiFlight action to the "OnChange" event. You can reference the current axis reading as "@".
Joystick Hat Switch
MobiFlight treats a hat switch like 8 individual buttons, one button for each direction:
- Up (↑)
- Up Right (↗)
- Right (→)
- Down Right (↘)
- Down (↓)
- Down Left (↙)
- Left (←)
- Up Left (↖)
Each direction is available from the device drop down menu and you can assign individual actions for "OnPress" and "OnRelease".
Joystick outputs
MobiFlight supports joysticks as output devices for some joysticks, such as the Honeycomb Bravo Throttle Quadrant.
Joysticks with output device support will show as modules in the output config dialog, usually with meaningful names for the LEDs:
Value greater than 0 are always converted to 1.