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: Can I reverse analog controls FOR JUST 1 JOYSTICK?  (Read 3162 times)

0 Members and 1 Guest are viewing this topic.

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2255
  • Last login:September 04, 2025, 11:58:58 pm
  • Dr. Inferno
    • The Infernolab
Can I reverse analog controls FOR JUST 1 JOYSTICK?
« on: June 19, 2009, 06:54:11 pm »
So, in the past, I've been using my Logitech Attack Force 3 as my gas/brake/shifter for driving games.  It works OK: push forward to accelerate, pull back to brake, & hit the trigger to shift.  I was also using a Slikstik spinner as my wheel.

Now that I have a Logitech Driving Force Pro & realized that I can't really set it to pay acceptably well for optical encoder driving games, I at least want to use the pedals from the DFP, while keeping the analog stick as a functional throttle & brake too (for when I don't feel like pulling out the pedals).

BUT!

To get the analog stick to work, I have, in the Analog Controls tab menu, P1 Pedal 2 Reverse & P1 Pedal 1 Reverse set to "Off".

But, to get the DFP pedals to work, I have, in the Analog Controls tab menu, P1 Pedal 2 Reverse & P1 Pedal 1 Reverse set to "On".

Naturally, I can't have both controls set to be the throttle & brake simultaneously, as they're fighting each other.

So, in a stroke of "genius", I opened up the DFP pedals & swapped the ground & voltage leads on the 2 pots & reassembled.  Sure enough, now the Logitech settings program had the pedal travel reversed--it thought each pedal was down when it was up, and vice vers.


BUT!

MAME didn't get the memo.  This polarity swap that worked on the Logitech software didn't fool MAME for some wacky reason.  The controls are still fighting.  I can only assume that MAME is polling the pedals in a manner differently from the Logitech panel & didn't get fooled.


Sooooo, is there some command line argument or .ini or .cfg setting I can change to do a "pedal reverse" on only 1 controller?


Thanks!
-Jason

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: Can I reverse analog controls FOR JUST 1 JOYSTICK?
« Reply #1 on: June 22, 2009, 03:22:12 pm »
... is there some command line argument or .ini or .cfg setting I can change to do a "pedal reverse" on only 1 controller?

Short answer, no.   :(

... Logitech Attack Force 3 ... push forward to accelerate, pull back to brake, & hit the trigger to shift.

Now ... Logitech Driving Force Pro... use the pedals from the DFP, while keeping the analog stick as a functional throttle & brake too (for when I don't feel like pulling out the pedals).

...

Naturally, I can't have both controls set to be the throttle & brake simultaneously, as they're fighting each other.

... the DFP pedals & swapped the ground & voltage leads on the 2 pots & reassembled.  ... pedal travel reversed


BUT!

MAME didn't get the memo....

Mame is just using directX directInput, much like most windows games.  Nothing fancy or special about it.

A couple things you can make sure you have set, though: 

Map the stick's "half axis" to the pedal analog input.  Go to input mapping menu, enter moke stick, wait until mame registers, enter (again), moke same stick.  Repeat again if mame maps the opposite half than you want.  (I'm assuming you're using a current mame, this was just recently fixed.)

You can map the pedals to half axis, too, but IMO it is only needed if the pedals share the same axis, and if that's the case, I'd suggest setting it up with the Logitech driver software to split the pedals (give them individual axis, each).

Unmap the stick and pedal for the pedal inc and pedal dec inputs.


However, if you already have the setup like above, and you got the symptoms you listed, then the short answer applies.
Robin
Knowledge is Power

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: Can I reverse analog controls FOR JUST 1 JOYSTICK?
« Reply #2 on: June 22, 2009, 05:31:07 pm »
GlovePIE?

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2255
  • Last login:September 04, 2025, 11:58:58 pm
  • Dr. Inferno
    • The Infernolab
Re: Can I reverse analog controls FOR JUST 1 JOYSTICK?
« Reply #3 on: July 27, 2009, 09:17:28 pm »
Howdy Rebel-

I finally got a chance to test out your ideas.  No dice.

I don't have anything mapped to Dec & Inc.

I have Logitech treating the brake & throttle as separate axes.

I think I'll just leave things as-is.  I mean, if I've got a wheel & pedals, I'm not gonna wanna play Spy Hunter with my spinner & 6 buttons & my joystick for throttle, am I...?  :]

Thanks yet again,
-Jason