VOGONS


First post, by Vision2098

User metadata
Rank Newbie
Rank
Newbie

How do you get it to work? I set it to 'auto' and certainly have more than a 4-button gamepad in Windows, but inside DOSBox it only uses two buttons (and wraps them around).

The other options under the [joystick] header in the conf refer only to axes, and thrustmaster/flightstick which have nothing to do with gamepads.

What am I missing? TIA =)

Reply 1 of 10, by ADDiCT

User metadata
Rank Oldbie
Rank
Oldbie

buttonwrap=false

Reply 2 of 10, by Vision2098

User metadata
Rank Newbie
Rank
Newbie

Hmm, nope, that doesn't do it; I still only have two emulated buttons that way. Just with wrap on, I have a lot of button 1/2, and with it off I have only one 1 and one 2.

Reply 3 of 10, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

joysticktype=4axis

Reply 4 of 10, by Vision2098

User metadata
Rank Newbie
Rank
Newbie

4axis worked...

So, Gravis Gamepads were simply four axis joysticks, and used two of the axes as buttons?

If so, I never knew that...

Thanks!

Reply 5 of 10, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Do you have two joysticks attached? Or one joystick that "behaves" like two?
dosbox uses =2axis then, which limits the number of buttons for each joystick.

Reply 6 of 10, by Vision2098

User metadata
Rank Newbie
Rank
Newbie

Ummm... it's an XBox 360 gamepad using the "XBCD" drivers...

Right now I have it set up with X/Y as the left analog stick, Rx/Ry as the right analog stick, the D-Pad as the POV Hat Switch, and everything else (including the analog triggers) set to be standard buttons.

It's what seems to be a fairly standard analog gamepad setup in Windows... but with DOSBox using the 'auto' for joystick, it gets set to 2 axes/2 buttons, despite there being technically 4 axes and multiple buttons. (How DOSBox would/should pick between the two I'm not sure, but it doesn't do anything at all.)

Might this be a possible bug?

Reply 7 of 10, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

This is no bug. No idea why those crazy drivers report one joystick
as two joysticks, that's not really our fault.

despite there being technically 4 axes

2axis means 2x2axes = 4 axes. So nothing wrong.

I don't know what exactly the driver does, even if reporting as two
separate joysticks it should work with the joysticktype=auto as then
the 2axis allows for two attached joysticks.

Reply 8 of 10, by Vision2098

User metadata
Rank Newbie
Rank
Newbie

Mmmm, nono... it X/Y and Rx/Ry are the left and right analog sticks. The drivers report the gamepad as a whole as a single device as far as I know, but technically there are 4 axes that way. X/Y and Rx/Ry are how dual-analog gamepads and Windows handle most any dual-analog setup.

I'm not sure if DOSBox uses them as two separate joysticks, as I don't think I have any 2 joystick supporting games laying around... but still, it's certainly one gamepad with more than 2 buttons, and DOSBox is failing to see it as such.

And why would forcing 4axis fix the 4-button problem? I mean, I set 4axis and all my 4-button games worked entirely as expected. Shouldn't auto have figured that out?

Perhaps it's that I don't know what auto goes looking for...

Reply 9 of 10, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Shouldn't auto have figured that out?

Yes, but the auto merely looks how much joysticks SDL/winmm reports.

Reply 10 of 10, by Vision2098

User metadata
Rank Newbie
Rank
Newbie

OOooh! Now I see what was going on.

I had a 2nd joystick installed; despite being not-currently-connected, it kept itself around in winmm basically. I had to go remove it from device manager.

All is well now when using auto.

Confused me for a while; thanks wd!