Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Mouse Not Working in Mame v.55 or v.36  (Read 1408 times)

0 Members and 1 Guest are viewing this topic.

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Mouse Not Working in Mame v.55 or v.36
« on: January 09, 2006, 01:53:26 am »
I've searched this and every thread says the same thing:

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #1 on: January 09, 2006, 04:46:05 am »
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.
« Last Edit: January 09, 2006, 05:17:28 pm by Kremmit »

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #2 on: January 09, 2006, 05:57:49 am »
Delete the contents of the \mame\cfg folder - the cfg files have changed numerous times and are not all backwardly compatible.

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #3 on: January 09, 2006, 12:31:58 pm »
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.

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #4 on: January 09, 2006, 01:00:50 pm »
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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #5 on: January 09, 2006, 01:50:20 pm »
Try copying mamepp.ini to mame.ini.

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #6 on: January 09, 2006, 02:14:44 pm »
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.

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #7 on: January 09, 2006, 03:28:27 pm »
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?

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #8 on: January 09, 2006, 03:37:19 pm »
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?

2600

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1630
  • Last login:June 05, 2017, 10:20:56 am
  • I want my own arcade controls!
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #9 on: January 09, 2006, 03:52:07 pm »
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.
« Last Edit: January 09, 2006, 03:54:36 pm by 2600 »

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Mouse Not Working in Mame v.55 or v.36
« Reply #10 on: January 10, 2006, 09:33:34 am »
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.