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: Advanced Gamepad Hack Wiring Question  (Read 2013 times)

0 Members and 1 Guest are viewing this topic.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Advanced Gamepad Hack Wiring Question
« on: May 05, 2003, 12:29:40 pm »
I am considering two gamepads to hack, a gravis pro USB (14 inputs, no common ground), or a Wal-Mart USB (13 inputs, common ground).  Problem is I would really like 15 inputs: 4 Directionals, 6 buttons, Start 1, Coin 1, Start 2, Pause, and Escape.

My thinking: In MAME, I can map Escape to ?Joycode_UP AND Joycode Down?  and Pause to ?Joycode_RT and Joycode Left? and this should allow me to exit the game (or Pause) with no chance of accidentally activating the functions.

Questions -

For the common ground, I assume I could just wire a button with one terminal connected to both the UP and Down inputs and the other connected to GND and the button will activate both directions and exit MAME, correct?  (Or do I need to do something with diodes to make this work?)

For the non-common ground, let?s say UP is Terminals A and B and DN is Terminals C and D.  I don?t think I can wire a button to A and C on one side and B and D on the other, or if I did, would MAME interpret this as 5 Buttons pressed (A-B, A-C, A-D, B-C, B-D) and still Escape, or would it fail.  Is there a way to make it work with diodes, perhaps?
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7014
  • Last login:Today at 11:25:58 am
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re:Advanced Gamepad Hack Wiring Question
« Reply #1 on: May 05, 2003, 02:14:37 pm »
I am considering two gamepads to hack, a gravis pro USB (14 inputs, no common ground), or a Wal-Mart USB (13 inputs, common ground).  Problem is I would really like 15 inputs: 4 Directionals, 6 buttons, Start 1, Coin 1, Start 2, Pause, and Escape.

My thinking: In MAME, I can map Escape to ?Joycode_UP AND Joycode Down?  and Pause to ?Joycode_RT and Joycode Left? and this should allow me to exit the game (or Pause) with no chance of accidentally activating the functions.

Questions -

For the common ground, I assume I could just wire a button with one terminal connected to both the UP and Down inputs and the other connected to GND and the button will activate both directions and exit MAME, correct?  (Or do I need to do something with diodes to make this work?)

This should work with diodes, but may depend on the way the pad is designed.  There may have been some shortcuts taken, as this would never occur when used as it was designed.

Quote
For the non-common ground, let?s say UP is Terminals A and B and DN is Terminals C and D.  I don?t think I can wire a button to A and C on one side and B and D on the other, or if I did, would MAME interpret this as 5 Buttons pressed (A-B, A-C, A-D, B-C, B-D) and still Escape, or would it fail.  Is there a way to make it work with diodes, perhaps?

If this works at all, diodes would definitely be in order.  Certain combinations of those lines could be very bad depending on the design of the circuit.   Even diodes might not isolate things well enough if too many random lines get crossed that shouldn't be.

Without knowing how the circuit works, any activity like this is a crap shoot.  :-\

RandyT
« Last Edit: May 05, 2003, 04:04:16 pm by RandyT »