Joystick limitations

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
lucabu
Competent
Competent
Posts: 62
Joined: Mon Jul 03, 2006 11:35 am
Location: Italy, Galaxy 3

Joystick limitations

Post by lucabu »

Hello,

I am trying to use a Saitek X52 flight control system http://www.saitek.com/uk/prod/x52.htm witch has _drum_roll_ 11 axis and 32 buttons.

I'm experiencing several limitations using it with Oolite (linux version). Although I can assign any of the control's buttons/axis to functions specified in joystick setup, several of these are not working.

I guess at the moment Oolite can handle only a limited set of buttons/axis on a stick:

Code: Select all

2008-07-29 10:08:36.282 oolite[3113] [unclassified.JoystickHandler]: Joystick button out of range: 20
2008-07-29 10:08:37.640 oolite[3113] [unclassified.JoystickHandler]: Joystick button out of range: 31
2008-07-29 10:08:43.218 oolite[3113] [unclassified.JoystickHandler]: Joystick button out of range: 30
2008-07-29 10:08:44.141 oolite[3113] [unclassified.JoystickHandler]: Stick axis out of range - axis was 10
2008-07-29 10:08:55.550 oolite[3113] [unclassified.JoystickHandler]: Joystick button out of range: 20
Is there a way to solve this?

Thank you in advance.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

The only way right now is to build Oolite yourself. The limits are defined in src/SDL/JoystickHandler.h (lines 85-87).
User avatar
lucabu
Competent
Competent
Posts: 62
Joined: Mon Jul 03, 2006 11:35 am
Location: Italy, Galaxy 3

Post by lucabu »

Thank you,

Since I have some spare time now, I'll give it a try.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

I’ve raised the limits for 1.72.
User avatar
lucabu
Competent
Competent
Posts: 62
Joined: Mon Jul 03, 2006 11:35 am
Location: Italy, Galaxy 3

Post by lucabu »

I see... 16 axis and 64 buttons.

Ok, thank you.
Post Reply