Menu

#1875 Extend Joystick Button count beyond 32

3.6
Done
nobody
Medium
2018-10-03
2016-06-04
No

Saitek X52-Pro, increasingly popular, has upwards of 35 buttons. flightgear/src/Input/Joysticks/FGJoystick.hxx places an upper limit of 32 on button count. Could this be extended, maybe to 48, please ? Tks

Discussion

  • James Turner

    James Turner - 2016-10-20

    Unfortunatley I believe this is an intrinsic limit of the PLIB JS code, otherwise we would already have increased it. The event-input code on Mac and Linux should be able to address an arbitrary number of buttons, but we don't have a Windows implement of Event-input.

     
  • Huntley Palmer

    Huntley Palmer - 2016-10-21

    OK, thanks for the explanation.

     
  • Andrea Palazzi

    Andrea Palazzi - 2017-02-03

    Hi,

    I'm also interested in having more than 32 buttons available in flightgear for a cockpit project I'm developing.
    PLIB seems abandoned, maybe you could take over the sources?
    As for the specific issue, it seems that all that's needed is to modify a #define in js.h
    https://sourceforge.net/p/plib/code/HEAD/tree/trunk/src/js/js.h#l35

     
  • xDraconian

    xDraconian - 2018-09-30
    • labels: --> PLIB, Hardware
     
  • Huntley Palmer

    Huntley Palmer - 2018-10-03

    xDraconian: James' response was good enough for me to consider ticket closed, Tks

     
  • xDraconian

    xDraconian - 2018-10-03
    • status: New --> Done
     
  • xDraconian

    xDraconian - 2018-10-03

    Thanks Huntley

     

Log in to post a comment.

MongoDB Logo MongoDB