MobiFlight-Connector icon indicating copy to clipboard operation
MobiFlight-Connector copied to clipboard

Joystick Values are inverted

Open DocMoebiuz opened this issue 2 years ago • 2 comments

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

  • MobiFlight Version: [e.g. 8.2.0]
  • FlightSim: [e.g. MSFS2020]
  • AddOn: [e.g. Default Aircraft]

Additional context Workaround: 65565-$

DocMoebiuz avatar Dec 09 '21 23:12 DocMoebiuz

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.

JaimeLeon2 avatar Dec 10 '21 00:12 JaimeLeon2

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

neilenns avatar Dec 13 '21 17:12 neilenns