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: GunFight CP to Mame  (Read 1448 times)

0 Members and 1 Guest are viewing this topic.

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
GunFight CP to Mame
« on: December 02, 2009, 02:36:13 pm »
I recentley bought a GunFight Control panel that i want to hook up to a mame machine.  The direction controls are simple, it is a primitive 8-way joystick.  The gun control is this funky slider thing where the contacts move on and off metal plates, its hard to describe.  In mame it looks like these were analog controls but i don't think that is right.  Does anyone have an idea as to how to hook this up to a mame machine to get it to work? 

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
Re: GunFight CP to Mame
« Reply #1 on: December 04, 2009, 06:47:39 pm »
Looks like it might be a variable resistor made by just using metal plates. Basically a variable pot, and hence would be an analog control.

Do you have a multimeter you can hook up and read the values? If so, you will need to find the range of resistance on the control. A controller with both analog and digital inputs would be your best bet. Something like the A-Pac or U-HID from Ultimarc, or the GP-Wiz (?) from GGG.

Xiaou2

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4136
  • Last login:Today at 02:16:43 am
  • NOM NOM NOM
Re: GunFight CP to Mame
« Reply #2 on: December 05, 2009, 01:31:05 pm »

 Its not a variable resistor.

 Its very clear from the diagrams that is a series of switches.

 If it Was needed / used a variable resistor, then there would be no need
for the 4 metal contact tracks.. as it would only need / use ONE variable contact
track/resistior.

speedklz

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 196
  • Last login:November 17, 2018, 12:56:23 pm
Re: GunFight CP to Mame
« Reply #3 on: December 05, 2009, 01:53:35 pm »
So each strip would need to be an independant key press inside mame.
Best of the Best of the Best. Sir!

huygens

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 62
  • Last login:October 31, 2011, 01:33:08 am
Re: GunFight CP to Mame
« Reply #4 on: December 05, 2009, 02:25:52 pm »
Mame maps some discreet controls as anolog in mame (12 way joysticks are another example) You need to convert the digital values to analog to use the control in mame. I'm building an interface for a 12-way rotary to do this at the moment. It's still in the design stages, but I can add support for your guns.

From the schematic the gun puts out a 3-bit grey-code. It doesn't use 0 0 0 so there are 7 possible gun positions:
(Pad 1, Pad 2, Pad 3) 1=gnd
1 0 0,  1 0 1,  1 1 1,  1 1 0,  0 1 0,  0 1 1,  0 0 1

Grey code: http://en.wikipedia.org/wiki/Gray_code
« Last Edit: December 05, 2009, 02:33:28 pm by huygens »

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
Re: GunFight CP to Mame
« Reply #5 on: December 08, 2009, 02:19:35 pm »
thanks for the responses, 
I agree i think that these are switches rather than pots, i still can't figure out how to wire them up to make it work with mame correctly