Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: The Man on July 18, 2009, 02:46:38 pm

Title: Joystick values in Mame Config
Post by: The Man on July 18, 2009, 02:46:38 pm
Hello All!

I'm trying to get my old Twisty Grip working on the new version of mame and I'm required to change some joystick values in my config, but the new mame Verizon has everything in the mame.ini file and I'm not sure what to do.  The values I used to change are:

joyx_low_margin
joyx_high_margin
joyy_low_margin
joyy_high_margin

how do I do it in the new Mame 0132?

Thanks in advance for any help :P
TM
Title: Re: Joystick values in Mame Config
Post by: u_rebelscum on July 20, 2009, 01:29:26 pm
Just out of curiousity, what version of mame used those options?  I don't reconize them.  AdvanceMame?

For current mame, there are a few options you want to look at:

-joystick_deadzone
-joystick_saturation
-joystick_map
  (maybe)

-joystick_deadzone is like your low_margins options, I think.  Mame doesn't send the game anything if the joystick value is less than the set number.  The default, 0.3 (aka 30%), is really high for any analog game, so you'd want to set it to something like 0-0.05, propably

-joystick_saturation is like your high_margins options, I think.  This value sets where mame "tops off" the analog signal.  IOW, when the analog stick sends mame value at or above the set value, mame sends the game its max value.  The default, 0.85 (aka 85%), is pretty good for analog sticks with circular restrictors, IMO.  You might want to increase it for your twisty grip yoke.

More info on these two are in mame's docs folder, in the config.txt file.

-joystick_map is for translating analog values to game's digital (8-way/4-way) signals.  A lot more info on this is also in mame's docs folder in the config.txt file.  (I can go more into this once you've read the info on this option in that file if you have questions on it; I'm not going to repost the ~50 lines on this one option that you might not even want to use. ;) )