Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: Thalt on April 08, 2007, 10:05:01 pm
-
Hi,
I've been trying to play freespace 2 for the past couple of days, but I'm having trouble getting the game to read my joystick axes. The buttons work fine in game. The hat on the joystick works in game as well. I've tested it with jstest, it reads all axes movements fine, and it calibrates with jscalibrator. But I cant even set the joystick axes (X,Y, Z, throttle) as controls in the control config menu.
I've built fs2_open from cvs (4/3/2007 and 4/8/2007), using ubuntu edgy, kernel 2.6.17. I'm using a Logitech wingman extreme with usb plugin. I don't know exactly what I'm doing, and any help would be greatly appreciated. Any suggestions on getting the game to read my axis movements?
-
Did you try setting the 'SDL_JOYSTICK_DEVICE' variable? If not, make a search for it - there are several threads.
Edit: the forum search doesn't seem to be too good with this, Google works better..
-
Hmmm, so, one of the last things I did last night was reinstall the driver. Shutdown down for the night, boot up this morning, and it works now. Perhaps I just needed to refresh some of the variables or something, like the SDL variables (which I did not set manually). Anyway, its working and reading all axes. Thanks for the response castor.
-
Wasn't much of help, but good to know you got it working :)
-
Environment variables are set on log-in - if it changed and you had not logged out and back in, they would not have updated.
Usually.
-
I've had the exact same problem with my USB joystick (Logitech Attack 3) - the buttons worked fine, but X/Y/Z axes were not recognized.
The solution in my case was to run 'modprobe joydev' as root, since this module wasn't autoloading for some reason (this is on openSUSE 10.2, but should apply to other distros as well - I've seen a couple of related posts on the net).
Now back to zooming around space!! ;)
-
Okay... I didn't want to start a new thread for this, so i resurrected this one ;)
I finally have a new Joystick. It's an Saitek Cyborg Evo Force (I've considered buying the X52, but I thought it would be a bit of a overkill).
And now the Mapping of the Axes doesn't work right.
This Joystick does have as many axes as my old one (X, Y, Throttle, Rudder and the Coolie Hat is recognized as two axes, too), but the old SDL_LINUX_JOYSTICK-Env-var doesn't work anymore. The X and Y axes are just working fine, but I can't get the other two axes to work.
I've already messed around with the Env var and entered everything from 4 to 13 to the axes-"section", but It doesn't work... at 5 and 6 Rudder and Throttle are recognized as buttons (Coolie hat), but only then... And they're never recognized as axes.
jstest gives me this:
Driver version is 2.1.0.
Joystick (Saitek Cyborg Evo Force) has 12 axes (X, Y, Z, Rx, Ry, Rz, Throttle, Rudder, Hat0X, Hat0Y, (null), (null))
and 13 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, BtnC).
Real mapping is as followed:
Axe 0: X
Axe 1: Y
Axe 2-5: nothing?
Axe 6: Throttle
Axe 7:Rudder
Axe 8: Hat0X
Axe 9: Hat0Y
Any suggestions how I can get my Throttle and Rudder working again? Now that I have a working Joystick again (my old one didn't calibrate anymore :( ), I would LOVE to fly around in Space WITH working Throttle and Rudder...
-
Oh yeah... FS2 sees my Joystick as followed:
Joystick #1: Jess Tech Dual Analog Pad
Joystick #2: Saitek Cyborg Evo Force
Joystick INITTED!
Using 'Saitek Cyborg Evo Force' as the primary joystick:
Number of axes: 12
Number of buttons: 13
Number of hats: 0
Number of trackballs: 0
EDIT:
Okay, that was stupid from me:
Of course FS2 sees my joystick like this if I don't use the envvar.
-
Uhm... :bump: ?