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: Single axis blues  (Read 1031 times)

0 Members and 1 Guest are viewing this topic.

SirDaShadow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:September 13, 2018, 11:10:15 am
Single axis blues
« on: January 14, 2009, 01:30:32 am »
Ok, first of all, I'm pretty comfortable with windows and mame, but this one eludes me and I'm pretty sure it's a stupid question but here it goes:

Several mame (and even non mame) games required seperate axis for accel/brake. Well...I have a thrustmaster freestyle and it maps the accel to Y Axis (128-255) and brake Y Axis (127-0). How the hell can I tell MAME not to take the absolute value of the Y axis as accel (at center or idle it will register 128 and it thinks I'm depressing the accel, when it should read 0).

I know this sounds noobish but I haven't seen this problem addressed anywhere. How can you fix this? I'm trying to "decalibrate" the throttle so center becomes 0, but it just doesnt work that way....

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: Single axis blues
« Reply #1 on: January 14, 2009, 05:11:17 pm »
This has been an issue since I started mame (0.37u13).  For a while there was a cool fix, but I'm not sure if it's still working (related stuff added at same timehave fallen be the way side over the year or two since they were added).  I'm at work, er "outside", so you'll have to test it, though. :angel:

Mame can use the full analog axis or half the axis.  Most inputs use the full axis (analog joystick X axis for example).  A few inputs are like yours, and use only half an analog axis; it could be either hardware (like your case) or software (rom or pc game).  The way you used to do it was tab, input, scroll to the analog port (not Inc/Dec), enter, move axis you want to use, wait until mame registers the axis, enter move axis in the half you want to use.  Very much like mapping a "not" in digital inputs, but analog does do nots, it switches between full and half axis instead.

If that doesn't work (anymore), let us know and I can help you edit the cfg file by hand. :P
Robin
Knowledge is Power

SirDaShadow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:September 13, 2018, 11:10:15 am
Re: Single axis blues
« Reply #2 on: January 14, 2009, 11:15:20 pm »
This has been an issue since I started mame (0.37u13).  For a while there was a cool fix, but I'm not sure if it's still working (related stuff added at same timehave fallen be the way side over the year or two since they were added).  I'm at work, er "outside", so you'll have to test it, though. :angel:

Mame can use the full analog axis or half the axis.  Most inputs use the full axis (analog joystick X axis for example).  A few inputs are like yours, and use only half an analog axis; it could be either hardware (like your case) or software (rom or pc game).  The way you used to do it was tab, input, scroll to the analog port (not Inc/Dec), enter, move axis you want to use, wait until mame registers the axis, enter move axis in the half you want to use.  Very much like mapping a "not" in digital inputs, but analog does do nots, it switches between full and half axis instead.

If that doesn't work (anymore), let us know and I can help you edit the cfg file by hand. :P

Thanks! I actually accidentally figured it out...it adds a + or a - to the axis and does exactly what you said...