MobiFlight / MobiFlight-Connector

MobiFlight is an open source project that allows you to create your own home cockpit for your favorite flight simulator in a flexible, affordable and extremely user-friendly way.
https://mobiflight.com
MIT License
235 stars 104 forks source link

Joystick Values are inverted #609

Open DocMoebiuz opened 2 years ago

DocMoebiuz commented 2 years ago

Describe the bug Joystick axis values are inverted. Instead of full value e.g. 65565 it shows 0 and vice versa.

Steps To Reproduce Steps to reproduce the behavior:

  1. Connect Joystick
  2. Create input for joystick axis
  3. Store value (@) in MobiFlight variable
  4. Create MobiFlight variable for Joystick value
  5. Start MobiFlight in Offline mode
  6. Use joystick axis

Expected behavior Values are showing 0 when joystick axis full down, and 65565 when axis full up.

Actual behavior The other way around.

Details

Additional context Workaround: 65565-$

JaimeLeon2 commented 2 years ago

As I told Pizman, I think axis reversion is a common issue. My Thrustmaster Hotas joystick has all of its axes reversed in the MSFS2020 configuration. I just checked the box provided to reverse the axis direction. So, it was not surprising to me to see those same axes being read by Mobiflight in reverse scale.

I suggest that you make the axis reversion as an option, just like in the MSFS2020 control options. This would also allow for having potentiometers wired in reverse to be easily adopted.

neilenns commented 2 years ago

This must be incredibly common because AAO offers a "Reverse axis" checkbox on every axis input config.