Author Topic: Linux Joystick Axis Does Not Work At All  (Read 1321 times)

0 Members and 1 Guest are viewing this topic.

Linux Joystick Axis Does Not Work At All
Using Ubuntu 6.10. I have a Logitech Extreme 3D Pro, which I bought because it reportedly works perfectly in Linux, and in Freespace 2. The joystick is detected and all works, but in FS2_Open, only the buttons are detected, and not the joystick axises. Now, this stick has 4 axises. The standard x/y, along with a twist axis, and a speed adjust, which ranges from -255 to 255.

 
Re: Linux Joystick Axis Does Not Work At All
I have a Saitek Cyborg Stick - Rumble Force.
It also has this many axes.
Taylor told me how to map the axis right:
Code: [Select]
SDL_LINUX_JOYSTICK="'Saitek Cyborg 3D Rumble Force' 4 1 0" ./fs2_open"Saitek Cyborg 3D Rumble Force" is the name that get's reported from the joystick (look in dmesg/messages).
The three numbers are the numbers of "numaxes numhats numballs".
So my Joystich does have 4 axis in total (x, y, rudder and throttle), one Hat and no "balls" (whatever is meant by this).
« Last Edit: December 28, 2006, 07:08:12 am by Mr_Maniac »

 

Offline castor

  • 29
    • http://www.ffighters.co.uk./home/
Re: Linux Joystick Axis Does Not Work At All
With USB sticks it can also be something like: SDL_LINUX_JOYSTICK="'USB HID v1.10 Joystick' 4 1 0"
(my MS SideWinder Precision 2 works with that).

 
Re: Linux Joystick Axis Does Not Work At All
Does it normally stop working after running the some script a second time?

 
Re: Linux Joystick Axis Does Not Work At All
Well... It's not a script. It's an environment variable.
You could write it in your ~/.bashrc
You could also write a little shell-script to start fs2.
Or you start fs2 everytime with SDL_LINUX_JOYSTICK="..." ./fs2_open

  
Re: Linux Joystick Axis Does Not Work At All
Well that's what I did. The joystick axis stopped working the second time I went into FS2_Open.