VOGONS


First post, by GameQuest

User metadata
Rank Newbie
Rank
Newbie

On Linux, using USB joystick

jstest /dev/input/js1 | tee -a a
Driver version is 2.1.0.
Joystick (Madcatz Mad Catz V.1 Stick) has 6 axes (X, Y, Z, Rz, Hat0X, Hat0Y)
and 7 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn).
Testing ... (interrupt to exit)
Axes: 0:-32767 1: 32767 2: 2364 3: 0 4: 0 5: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off

So on maximum corner it shows up to 32767 coordinate on axis.

The problem is that in Tie fighter in DosBox 0.74, the joystick is wrongly callibrated each time and it moves very slowly (even if the stick is in corner, the game reacts as if it would be only slightly out of center), it takes around 30-60 seconds for 180 turn of the craft.

When I just change cycles=fixed 3000 or auto, then all works fine, turn takes around 5 seconds. But then this (and many other) game is unplayably slow, with ~x10 worse framereate then normally.

How to have working joystick while heaving good cycles?

How to debug this problem more?

Could it be that the range of this device 32767 is "too big" for DoS game (maybe some variable overflows or smth), perhaps some limit(rescale the value, divide /8) would help?
Is that possible without hacking the code?

How about instead making the joystick drive the mouse in game, though moving on "infinite table" so fast and long turns are possible.

$ dosbox
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/flashplay/.dosbox/dosbox-0.74.conf

It might now be reset it to default value: normal2x
MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none
Using joystick Madcatz Mad Catz V.1 Stick with 4 axes, 7 buttons and 1 hat(s)

Settings like timed=true or false, or changing joystick type to 2axis 4axis ch didn't helped either.

Reply 1 of 1, by duralisis

User metadata
Rank Newbie
Rank
Newbie

I'm curious to see how Tie fairs with my own stick, do you have the retail CD version? If the analog scaling is off, then an absolute device like a gamepad should be as well, so maybe try something with a DPAD if you have one.