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: mame catver/control dat - specify 270 / 360 wheel type?  (Read 1745 times)

0 Members and 1 Guest are viewing this topic.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
mame catver/control dat - specify 270 / 360 wheel type?
« on: June 17, 2012, 05:28:04 pm »
hey guys,

i am moving forward with an automated wheel extension with an actuator (thank you darth paul for all your help so far!).

i got a LOT to do before the parts come in.  Set up MALA, play around with controlchoose, etc.

i was wondering if any of the mame support files like catver or controls.dat specify which driving games use specific wheel types, 270 degree vs. 360 degree (are those the only two wheel types?)

once i get this going, i'd like to have controlchoose push my 360 wheel out for those specific games.  for the 270 degrees, i think i'll be using my star wars yoke.

anyone know?  many thanks

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Online Online
  • Posts: 9273
  • Last login:Today at 07:58:30 am
  • ...
Re: mame catver/control dat - specify 270 / 360 wheel type?
« Reply #1 on: June 17, 2012, 06:55:50 pm »
MALA gets the info from MAME.xml which it creates in the MAME folder the first time MALA is ran.

360 degree wheel games have "dial" as control type.
270 degree wheel games have "paddle" as control type.

If some aren't listed, or aren't listed correctly, you can modify MAME.xml by hand to change it.
Your ALL GAMES list will have to be refreshed before MALA sees the changes.

Additionally, you may have to delete and add back a game to your smaller game lists for the changes to take effect.
« Last Edit: June 18, 2012, 09:28:12 am by BadMouth »

nick3092

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
  • Last login:March 22, 2022, 03:57:28 pm
Re: mame catver/control dat - specify 270 / 360 wheel type?
« Reply #2 on: June 17, 2012, 06:57:39 pm »
Controls.dat appears to have the info in the P1 controls field.  Not sure if it's always consistent. But you could probably parse it out somehow.  Here are 2 examples I found with a real quick search of 360 and 270.

Code: [Select]
[polepos]
gamename=Pole Position
numPlayers=1
alternating=0
mirrored=0
tilt=0
cocktail=0
usesService=0
miscDetails=Button 1 is actually the spacebar by default to avoid conflicts with the pedals.  The high/low shifter is emulated by a single toggle input in mame.
P1NumButtons=1
P1Controls=High-Low Shifter+button+P1_BUTTON1|360 Steering Wheel+dial|Pedal (Analog)+pedal|Pedal2 (Analog)+pedal2
P1_BUTTON1=High / Low
P1_DIAL_EXT=Right
P1_DIAL=Left
P1_PEDAL=Accelerate
P1_PEDAL2=Brake

[gtmr]
gamename=1000 Miglia: Great 1000 Miles Rally (94/07/18)
numPlayers=2
alternating=1
mirrored=1
tilt=1
cocktail=1
usesService=0
miscDetails=IMPORTANT NOTE:  This game has several options regarding the control type.  It has an optional brake pedal/button as well as the option to play the game with either a 270 wheel or an 8way joystick.  The controls shown here are the ones used on the dedicated model.  Notice the lack of the brake pedal.  It seems that the brake pedal was used in conversion kits as the dedicated cabinet didn't have one.
P1NumButtons=1
P1Controls=270 Steering Wheel+paddle|Pedal (Microswitch)+button+P1_BUTTON1
P1_BUTTON1=Accelerate
P1_PADDLE=Left
P1_PADDLE_EXT=Right


tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: mame catver/control dat - specify 270 / 360 wheel type?
« Reply #3 on: June 18, 2012, 09:20:04 am »
thank you gentlemen!