Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Games001 on February 08, 2008, 10:51:08 am

Title: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 10:51:08 am
I just installed an Opti-Wiz and Mouse Hacked optical board to my first Mame Cab build.  Everything is running fine in Game Ex as the FE.

On the desktop I can run my spinner (home-brew) left and right as a mouse input, but in MAME how does one map the left/right axis for the spinner?

gads.. everything is such a pain the first time around.  :banghead:  I hope my second build will go smoother having now experienced loads of first timer issues on this bugger.
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Minwah on February 08, 2008, 11:18:20 am
First enable mouse input in your mame.ini file....I am a bit behind the times (in more sense than one) but last time I looked you need:

dial_device               mouse
trackball_device          mouse

Then run your game with Mame and hit Tab > Input (this game).  Check the mouse inputs are mapped correctly.

NB I know Mame now handles multiple mice so perhaps someone could confirm this is still correct...
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 11:50:05 am
As far as I can see in the Config menu (Tab) in MAME, the mouse is listed as a number of different controllers (X axis Paddle, X axis Dial, etc).

The question is how would you force the config file to save the Dial settings as Mouse only, as I don't want the Joystick spinning the dial for me.

If I try to mod the settings for Dial I get the option to enter the corrected key/movement, but the mouse or spinner have no effect here.  What am I missing?
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: ahofle on February 08, 2008, 12:05:38 pm
Did you check your mame.ini file as Minwah suggested?  Unless you have mouse enabled in there, you won't be able to map the mouse in the tab config menu.  If it is enabled, you should be able to select the dial analog x axis, press enter, spin the spinner hard one way and it will register.
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 12:50:24 pm
To the best of my knowledge, there is NO Mame.ini file in this cab setup.  :dunno

I did a complete system search and found no such program/file.

Do I have to create one, and if so, how is that done?
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Minwah on February 08, 2008, 01:20:18 pm
Do I have to create one, and if so, how is that done?

Yip, type:

mame -cc

from a commandline, within the mame folder.
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 01:27:17 pm
Would that mean use the 'Run' command line from Windows XP Start window while the Mame Folder is open?  :dizzy:
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Minwah on February 08, 2008, 01:31:44 pm
Would that mean use the 'Run' command line from Windows XP Start window while the Mame Folder is open?  :dizzy:

Easiest way is Start > Run,
Type 'cmd' and press OK,
Navigate to your MAME drive, ie if it is on C: drive type 'c:',
Navigate to your MAME folder, ie if it is in C:\mame drive type 'cd\mame' (or c:\emulators\mame would be 'cd\emulators\mame')
Then type 'mame -cc'

HTH
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 01:33:11 pm
Oohhhh... going old school on me are ya.  I'll give it a shot, thanks.
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 01:44:04 pm
From what I see...

the MAME ini file is now present and gives a few options for devices, such as paddle, trackball, etc.

I have replaced the 'joystick' names with mouse and set the mouse controller option to '1'.

Sound about right?
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 02:04:16 pm
hmmm, this seems to have worked.. sort of...

the spinner is hyper turning, moving only from true north to true south at the slightest turn of the knob.

I have tried to adjust the AD Sensitivity but it will not budge.  I guess it's ini time again.
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: ahofle on February 08, 2008, 05:16:20 pm
Make sure you only map the analog axises in the tab menu.  Do not map the "Paddle DEC" or "Paddle INC" with the mouse (they should be empty).
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 08, 2008, 09:46:39 pm
Indeed.  I discovered what happens when Mame tries to line up both the Mouse Dec/Inc and the Joystick 1 as a mouse as well.  Talk about MEGA spin speed!  :o

It's reasonably working now.. give a slightly 'rough' turn speed.  I think the simple 36 spoke encoder wheel is the issue here.  I might have to construct a 60+ and see if that cleans up the turning ratio.
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: ahofle on February 08, 2008, 10:20:49 pm
There is also an 'analog controls' tab menu that let's you adjust the sensitivity. 
Title: Re: MAME 122, cant seem to 'see' the spinner...
Post by: Games001 on February 09, 2008, 10:25:59 am
I have been tweeking the sensitivity via the menu and its helped a bit.  Still a tad rough, but that seems to be the least of the concerns so long as the blasted spinner works.  ;)