Main > Main Forum

Figured out why the joystick gets "stuck" in mame!!!

<< < (4/4)

Tiger-Heli:

--- Quote from: Farmboy90 on January 17, 2006, 12:32:10 pm ---
How many joysticks should show up in my case?  Here is my setup:
- 1 analog flight stick via the AKI board connected to 4 port USB hub
- 1 spinner (connected to 4 port USB hub)
- 1 trackball connected to 4 port USB hub
- 3 joysticks (2 8 way and a 4 way) via the IPAC connected to 4 port USB hub.

I am assumming 3 joysticks should show up in windows?

--- End quote ---
1 joystick - The AKI flightstick - the other joysticks are the connected to the I-PAC and considered keyboards to Windows.

Try unplugging everything from the USB hub except the I-PAC and see if that helps.  Maybe try swapping the hub out for a different brand as well, especially if it is USB 2.0 or non-powered.  Just a shot in the dark.

ErikRuud:
It sounds to me like you may have a variation of a problem I had a long time ago.

See this thread: http://forum.arcadecontrols.com/index.php?topic=6571.0

Farmboy90:
Ah-ha!  I finally figured out the problem.  However the solution is painful so I hope someone here can help me out.

The player two joystick appears to be "stuck" but isn't really.  I can reproduce the problem at will.  While in a two player game, all I need to do is tap the analog flight stick on my control panel.  Player two will then start to go left and stay there.  Nothing fixes it except leaving mame, exiting back to mamewah, and coming back in.

So I went into the game setup and remapped the player two controls from:

P2 Right     G or J2 X Axis +

to
P2 Right     G

In other words, just G (which is the right direction on the p2 joystick).  When I do this (and for the other three directions as well) everything works fine.

Tapping the flight stick has no affect on player 2 and everything works great.  The flight does however move the player 1 character, but it doesn't get p1 "stuck".  It just moves them.  That is becasue the inputs, by default, map the movements to the p1 joystick as well as J1 X Axis, etc.

Now my question is how can I fix this so that I don't need to remap my controls for every two player game I play?

A potential relevant area in my mame.ini is (from the input device section):
mouse 1
joystick 1
...
...
dial_device    mouse
trackball_device   mouse

All other settings (in this section) are the defaults. 

Any ideas?

Tiger-Heli:
I've seen a similar problem, but never pin-pointed it like that.

If this is a desktop controller, or a swappable panel cab - you can unplug the flightstick unless it is requred.

If you want it plugged in all the time, I recommend the following:

I assume you have more digital (joystick) 2-player games than Flightstick games.

Go into MAME and set Input-All games to disable J2 X Axis + and only map to "G".

This should solve the problem as you say the stick works for 1-Player games and I don't know of any games that would want the flight-stick for P2.

If you need to go beyond this - Eliminate the X Axis controls for ALL games, and then figure out which games use the flightstick (MAME32 or EmuLoader might help with this) and re-enable it for those games ONLY.

HTH . . .

Farmboy90:

--- Quote from: Tiger-Heli on January 21, 2006, 08:37:08 am ---I've seen a similar problem, but never pin-pointed it like that.

If this is a desktop controller, or a swappable panel cab - you can unplug the flightstick unless it is requred.

If you want it plugged in all the time, I recommend the following:

I assume you have more digital (joystick) 2-player games than Flightstick games.

Go into MAME and set Input-All games to disable J2 X Axis + and only map to "G".

This should solve the problem as you say the stick works for 1-Player games and I don't know of any games that would want the flight-stick for P2.

If you need to go beyond this - Eliminate the X Axis controls for ALL games, and then figure out which games use the flightstick (MAME32 or EmuLoader might help with this) and re-enable it for those games ONLY.

HTH . . .

--- End quote ---


This is an excellent idea!!!   I don't know of any games where the flight stick would be required for player 2 either, so this should be perfect.

Sweet, thanks!

Navigation

[0] Message Index

[*] Previous page

Go to full version