Menu

#2766 Increase joystick max axes

2020.3
Done
None
Low
2023-05-21
2022-09-16
foxbravo
No

Hello,
I was setting up Flightgear to work with my Logitech Flight System G940 under Archlinux using fred41's userspace driver (https://github.com/fred41/G940), since the kernel driver has always been buggy and lacks many axes/buttons.
All the 19 axes works fine using jstest.
However, Flightgear (and js_demo) can't handle more than 16 axes per joystick because (AFAIK) this value is hard-coded in _JS_MAX_AXESconstant in /3rdparty/joystick/FlightGear_js.h.
Could you please increase this value ?
Thanks a lot !

Discussion

  • James Turner

    James Turner - 2022-09-19

    I unfortunately don't know Linux so not sure if we can simply increase the value; we have the same issue on Windows but can't increase the value, I believe.

     
  • Richard Harrison

    Should be fine for Windows and Linux.

    Windows (MM API)[1] only supports 6 axes, with the hat being 7..8 (if present).


    [1] https://github.com/MysteriousJ/Joystick-Input-Examples

     

    Last edit: Richard Harrison 2023-05-12
  • Richard Harrison

    • status: New --> Done
    • assigned_to: Richard Harrison
     
  • Richard Harrison

    Value increased to 32 in 88ee1ca7. Tested and working on Windows.

    @foxbravo Please test and update this ticket if any

     

Log in to post a comment.

MongoDB Logo MongoDB