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 !
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.
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
Value increased to 32 in 88ee1ca7. Tested and working on Windows.
@foxbravo Please test and update this ticket if any