Main > Main Forum
Changing Mouse directions in Mame32
wbassett:
Okay first let me explain what I'm doing... I'm playing around with Star Wars and yes, trying to build a controller.
Right now I am playing around with a mouse. I've used an analog joystick before too, but at the moment am looking at how the mouse works and controls the game.
Here's my problem and question- Left and right track fine, but up and down are reversed. Actually they do function like a yoke would, meaning push in (move the mouse away from you) and you go down, pull out (move the mouse towards you) and you go up. The original Star Wars yoke is opposite and it's a bit disconcerting to play the game with the mouse.
How do I flip AD Stick Y Dec from J1 Y axis - to J1 Y axis + and AD Stick Y Inc from J1 Y axis + to J1 Y axis -? Obviously it's not as simple as going into the game menu, selecting those inputs and then moving the mouse. I looked around for a config or ini file but don't see one. This has to be a simple thing to do and I know someone on here will know exactly what to do.
In the mean time I'm heading off to search some more, I probably didn't word my search right.
Thanks to whoever has the answer! :)
blynkj:
I think is what you need
http://mamedev.org/devwiki/index.php/FAQ:Controls#When_playing_Star_Wars_.28or_other_games.29_with_a_mouse.2C_the_crosshair_moves_in_the_wrong_direction
"When playing Star Wars (or other games) with a mouse, the crosshair moves in the wrong direction.
These games were played with a Yoke originally, so that this is correct. In MAME, you can press Tab while playing, and choose "Analog Controls" and reverse the axis to correct this."
wbassett:
Thanks... I ended up getting it swapped but I had to plug in my joystick and then I could select the inputs. With the mouse nothing would register even though within the game the mouse worked.
This is on my testbed system upstairs, so no I'm not butchering SW's on my cab by using a mouse! ;)
u_rebelscum:
I could get more technical on what's going on (some of your original question is phrased with incorrect words, for example), but I'll skip unless you want want it. ;)
One point I'd like to make so you can use your mouse to scroll mame's menus. Mame has different input names for action up & down, vs menu up & down. The latter are called "UI Up" and "UI Down", and can be found in the "Input (general)", "User Interface" menu. You also might want to remap "UI Select" to use your mouse button (or player1 button1) instead of (or in addition to) just the enter key while you're at it.
wbassett:
Thanks urebelscum.
I got it working by plugging in an analog joystick and reversing the axis that way. It's only a change for just this game so the mouse works properly or everything else.
Sorry about any incorrect wording.