Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: markrvp on January 09, 2006, 01:53:26 am
-
I've searched this and every thread says the same thing:
-
edit- I no longer believe that anything contained in this post helped at all, other than finding out how to add a new controller profile to MAME32. See below.
I was having the same trouble with MAME32 0.76- I found that I had mouse control in games with input type trackball, but not in games with input type dial.
Here's how I fixed it:
In /mame32/ctrlr there are .ini files for custom controller layouts. There's a std.ini file in that dir that's full of all the default options. The relevant part is pasted here:
P1_DIAL "KEYCODE_LEFT | MOUSECODE_1_ANALOG_X"
P1_DIAL_EXT "KEYCODE_RIGHT | MOUSECODE_1_ANALOG_X"
P2_DIAL "KEYCODE_D | JOYCODE_2_LEFT"
P2_DIAL_EXT "KEYCODE_G | JOYCODE_2_RIGHT"
P3_DIAL "KEYCODE_J | JOYCODE_3_LEFT"
P3_DIAL_EXT "KEYCODE_L | JOYCODE_3_RIGHT"
P4_DIAL "JOYCODE_4_LEFT"
P4_DIAL_EXT "JOYCODE_4_RIGHT"
P1_DIAL_V "KEYCODE_UP | JOYCODE_1_UP"
P1_DIAL_V_EXT "KEYCODE_DOWN | JOYCODE_1_DOWN"
P2_DIAL_V "KEYCODE_R | JOYCODE_2_UP"
P2_DIAL_V_EXT "KEYCODE_F | JOYCODE_2_DOWN"
P3_DIAL_V "KEYCODE_I | JOYCODE_3_UP"
P3_DIAL_V_EXT "KEYCODE_K | JOYCODE_3_DOWN"
P4_DIAL_V "JOYCODE_4_UP"
P4_DIAL_V_EXT "JOYCODE_4_DOWN"
There are folders in that dir for SlikStik, Hotrod, and others. Each has a default.ini file in it, and some have other game-specific files. I created a folder named OptiWiz, and then created a file called default.ini in that folder.
I copied the entirety of std.ini into the new default.ini file, although I could probably have just used the lines I changed. I changed the first two lines of the dial section:
P1_DIAL "KEYCODE_LEFT | MOUSECODE_1_ANALOG_X"
P1_DIAL_EXT "KEYCODE_RIGHT | MOUSECODE_1_ANALOG_X"
and then went into the options menu of MAME32 and clicked "Default Game Options". On the controllers tab, there is a spot to change the default input layout. OptiWiz is now one of those options! I chose it, and then fired up a game of Tempest, which previously wouldn't allow me to use the mouse- and it works! I've got my Blasteroids spinner hooked up to the X-axis and I am good to go. I haven't messed with the other dial inputs, but it looks pretty straightforward.
Hope this helps.
-
Delete the contents of the \mame\cfg folder - the cfg files have changed numerous times and are not all backwardly compatible.
-
Weirdness.
I went back and tried to change the mouse action to the y-axis, and it still played with the x-axis. I eventually deleted the entire OptiWiz directory and all the .ini files in it. Things are now exactly as they were before when the mouse wouldn't work, and yet the games all still play with the mouse's x-axis. Including games I didn't try before, so it's not a game specific file hiding somewhere.
-
MAME .55 is what I am going to concentrate on exclusively here and if we can fix that then I'll tackle .36
I do not have a ctrlr folder in my Mame32 v.55 directory. However I do have the pull down controller option in the GUI controllers dropdown that gives me a choice of Standard, Hotrod, or HotrodSE. Does that mean the controller information is embedded somewhere?
This problem is really starting to annoy me. How hard could it be to get the damn mouse working? I know hundreds if not thousands of people must have used MAME .55 with a mouse, so PLEASE help me figure this out.
Here are the folders in my Mame v.55 directory. If you see something missing, please let me know.
-
Try copying mamepp.ini to mame.ini.
-
Ok, I just installed mame32 0.55. The only things I did was point the roms path at my existing roms directory and the samples path at my existing samples directory. Then I clicked to enable mouse input in the default games setup.
I fired up Super Sprint and the mouse controlled the blue car only, right-left movement for steering, and up-down movement controlled the throttle. The control mappings in the tab menu don't indicate that the mouse is mapped, but it is.
Mark, have you actually tired to play the game, without worrying about the tab menu? I wonder if maybe it was working all along for me, and I just got hung up trying to do the assignment in the tab menu, but never actually tried to play- I can't remember for sure anymore.
-
Try copying mamepp.ini to mame.ini.
Okay, I did this first.
Mark, have you actually tired to play the game, without worrying about the tab menu? I wonder if maybe it was working all along for me, and I just got hung up trying to do the assignment in the tab menu, but never actually tried to play- I can't remember for sure anymore.
And then I tried this. Sure enough in Super Sprint the blue car is controlled by the mouse X-axis even though it does not show it being mapped when I TAB into the settings menu.
Thanks for helping me fix this first problem guys.
My next question would be, how do you change the mapping from the X axis?
-
I have gotten nowhere with that. There's gotta be a place somewhere that defines how the mouse gets mapped to the analog controls, but where?
-
Pretty sure, but I don't think you can do this with older versions unless you recompile.
You can do it with newer versions though, just verified with .99. Remember when mapping the mouse, sometimes you have to give it a good wiggle or two and wait a sec.
Edit: Correction I thought you couldn't, but just tried .83 and I could so maybe I'm wrong.
-
I have gotten nowhere with that.