Hard Light Productions Forums
General FreeSpace => FreeSpace Discussion => Topic started 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.
-
I have a Saitek Cyborg Stick - Rumble Force.
It also has this many axes.
Taylor told me how to map the axis right:
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).
-
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).
-
Does it normally stop working after running the some script a second time?
-
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
-
Well that's what I did. The joystick axis stopped working the second time I went into FS2_Open.