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: Joystick values in Mame Config  (Read 1260 times)

0 Members and 1 Guest are viewing this topic.

The Man

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 112
  • Last login:August 27, 2009, 03:41:49 pm
  • I'm easy like Sunday mornin!
Joystick values in Mame Config
« 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

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Joystick values in Mame Config
« Reply #1 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. ;) )
Robin
Knowledge is Power