VOGONS


FreeBSD Joystick Issue

Topic actions

First post, by morganw

User metadata
Rank Newbie
Rank
Newbie

Running DOSBox 0.72 and 0.73 in FreeBSD 7.2 with a Logitech Attack 3 joystick, I'm seeing two problems:

1) With timed=true in the config file, the joystick axes are extremely "lagged", as if the event queue is not being drained properly and is just building up.
2) With timed=false, it pulls to the right constantly. I can't tell if it is lagged or not, but it isn't usable.

To work around, I disabled "REDUCE_JOYSTICK_POLLING" in video.h. However, this code path doesn't support remapping of the buttons, it just wraps them according to the defaults of whatever stick type (4axis in my case) was used. So, it works, but I sure wish the mapping was enabled!

The joystick works fine using "usbhidctl" to display the inputs/outputs in realtime. Anyone have some suggestions for other things to try?

EDIT: Had the "true vs false" behavior backwards, corrected now.

Last edited by morganw on 2009-06-28, 20:43. Edited 1 time in total.

Reply 1 of 2, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Sounds like an extremely inefficient joystick driver.

For 2) try with fixed cycles and recalibrate the joystick in the game.

1+1=10

Reply 2 of 2, by morganw

User metadata
Rank Newbie
Rank
Newbie

Hi,

Thanks for the quick response. I have to apologize though, for I had the true/false behavior reversed (edited it though, so no one else gets confused). The lag is with timed=true.

I set cycles=50000 in the config file, but there was no change in the behavior for either setting of timed.

There really isn't a specific joystick "driver" per say, it just attaches as a standard HID device. The data simply dumps as:

0x0000:0x0000.Generic_Desktop:X=128
0x0000:0x0000.Generic_Desktop:Y=123
0x0000:0x0000.Generic_Desktop:Z=255
0x0000:0x0000.Button:Button_1=0
0x0000:0x0000.Button:Button_2=0
0x0000:0x0000.Button:Button_3=0
0x0000:0x0000.Button:Button_4=0
0x0000:0x0000.Button:Button_5=0
0x0000:0x0000.Button:Button_6=0
0x0000:0x0000.Button:Button_7=0
0x0000:0x0000.Button:Button_8=0
0x0000:0x0000.Button:Button_9=0
0x0000:0x0000.Button:Button_10=0
0x0000:0x0000.Button:Button_11=0

And there is no delay in reporting.