Main > Main Forum
Help using Mame's Joystick Mapper for TRON
(1/2) > >>
secretagentwd40:
Hey everyone, 
          I've got a 4 player panel built with 4 simple competition sticks as the main inputs.  I also have a dedicated 4 way, spinner, and an
 Analog PC triggerstick (for Tron of course).  I went with the analog stick so that it could be used for some of the analog games like Space Harrier and Afterburner,  and it works good for Tron except of course for the light cycles level.

I've got a poor mans workaround right now of just using the dedicated 4-way and a pushbutton for that game, then moving back to the spinner and analog stick for the other 3 games.  It works, but is cumbersome enough for me; much less any guests to the cabinet.  I recently found out that versions of Mame higher than .118 i think have an mapping feature for analog joysticks similar to the Ultrastik 360s.  (I'm using V.127 so it should work)

Ive pieced together all the information that I've found so far about this feature and have gotten HeadKaze's MameJoyMap application with the custom maps for Tron, Qbert, etc. but I'm really at a loss to figure out where exactly to go from there.  In my Mame.ini file, I have found the Joystick_map option- set to auto.  Is there something in the Mame.ini that needs to be changed, or is it something in the individual control files for each game?

Thanks for any help, I've been pulling my hair out trying to figure this out ever since I got off work today :banghead:
isucamper:
I do this exact thing for TRON using an analog flightstick and it works pretty good.  See this post for info.

http://forum.arcadecontrols.com/index.php?topic=82063.msg904013#msg904013

I have since tweaked my settings for tron.  I use the following map now, making the diagonals even less sensitive. 

  836          788888889    Note that the numeric digits correspond to the keys
  837          4S88888S6    on a numeric keypad. So '7' maps to up+left, '4' maps
  838          44S888S66    to left, '5' maps to neutral, etc. In addition to the
  839          444555666    numeric values, you can specify the character 's',
  840          444555666    which means "sticky". In this case, the value of the
  841          444555666    map is the same as it was the last time a non-sticky
  842          44S222S66    value was read.
  843          4S22222S6
  844          122222223

Which would result in a "-joystick_map" command line that looks like this (add this to mame.ini):

-joystick_map  788888889.4S88888S6.44S888S66.444555666..444555666.444555666.44S222S66.4S22222S6.122222223
ahofle:
You'll want to put the map in the specific game's ini file, not mame.ini (because it is different for each game).
Use this map for Tron (ie put it in tron.ini):

joystick_map 788888889.4s88888s6.44s888s66.444555666.444555666.444555666.44s222s66.4s22222s6.122222223.

http://forum.arcadecontrols.com/index.php?topic=86315.msg908608#msg908608
secretagentwd40:
I understand how the joystick maps themselves work, just getting it implemented is whats beating me right now.  I don't have any .ini files for any specific games, there is an ini directory in the root but it is empty.  Is mame supposed to automatically create one, or do i just need to create one myself?  This has nothing to do with the .cfg files does it?

So in the mame.ini file, do I need to change the -joystick_map parameter, or does that just stay written as auto?
ahofle:
Leave it as auto in mame.ini.  Then create an empty file called tron.ini in your ini folder and add that one line to it.
Don't forget to enable joystick as well.
Navigation
Message Index
Next page

Go to full version