Hard Light Productions Forums

General FreeSpace => FreeSpace Discussion => Topic started by: Megatog615 on December 27, 2006, 09:28:01 pm

Title: Linux Joystick Axis Does Not Work At All
Post by: Megatog615 on December 27, 2006, 09:28:01 pm
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.
Title: Re: Linux Joystick Axis Does Not Work At All
Post by: Mr_Maniac on December 28, 2006, 06:41:31 am
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).
Title: Re: Linux Joystick Axis Does Not Work At All
Post by: castor on December 28, 2006, 09:02:40 am
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).
Title: Re: Linux Joystick Axis Does Not Work At All
Post by: Megatog615 on December 28, 2006, 02:23:46 pm
Does it normally stop working after running the some script a second time?
Title: Re: Linux Joystick Axis Does Not Work At All
Post by: Mr_Maniac on December 28, 2006, 03:59:13 pm
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
Title: Re: Linux Joystick Axis Does Not Work At All
Post by: Megatog615 on December 28, 2006, 05:49:17 pm
Well that's what I did. The joystick axis stopped working the second time I went into FS2_Open.