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: Trackball button question  (Read 1911 times)

0 Members and 1 Guest are viewing this topic.

Donkbaca

  • Our reptillian overlords would be pleased
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2648
  • Last login:May 09, 2012, 06:28:10 pm
    • Slim built MAME/Xbox cab
Trackball button question
« on: October 26, 2010, 12:01:37 pm »
So,  I was thinking about adding a trackball to my CP.  BUT, if I do, I don't want to add anymore buttons.  I am looking at getting a USB trackball for ease of setup.  My question is:  Is there a way to hookup my trackball buttons to my existing CP buttons?  So that, say P1 Buttons 4-5-6 are also Mouse L C R?

I know there is a way to do this, I have seen it mentioned in posts, but have not found a post that details how to do it.

Thanks!

VanillaGorilla

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 480
  • Last login:March 08, 2019, 10:23:51 pm
  • Coin detected in pocket
Re: Trackball button question
« Reply #1 on: October 26, 2010, 12:21:19 pm »
I believe you could just order a USB interface (from Randy @ GGG) for your trackball for like 15 bucks, and you then want to connect the 3 button leads from that interface to your existing (shared) buttons. You want to ground the interface also.. twisted quarter has good deals on happ trackballs, between that and the interface, you should be able to get it done for about 60-70 bucks....
« Last Edit: October 26, 2010, 12:24:55 pm by VanillaGorilla »

Donkbaca

  • Our reptillian overlords would be pleased
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2648
  • Last login:May 09, 2012, 06:28:10 pm
    • Slim built MAME/Xbox cab
Re: Trackball button question
« Reply #2 on: October 26, 2010, 12:25:07 pm »
How do you share the buttons?

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Re: Trackball button question
« Reply #3 on: October 26, 2010, 12:30:06 pm »
Hey there, I too didn't want to have dedicated mouse buttons on my CP, but I still wanted to have them available.  My solution I chose to use was to  hide a DPDT switch on my machine.  Just as you've described, when I flip the switch P1B5 and P1B6 become the Left and Right mouse clicks.  When I flip the switch back, back to normal arcade button presses.  I actually finally got to test this out last week, and I can confirm that the information from my post on the forum here does work:

http://forum.arcadecontrols.com/index.php?topic=99485

Note, I only did left and right mouse clicks and just did not use the middle mouse click at all.   I would guess this same method would work with a third button if you used a TPDT switch though.

Also in my post, others breifly talk about some scripting options available too, in you don't like the switch idea.


VanillaGorilla

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 480
  • Last login:March 08, 2019, 10:23:51 pm
  • Coin detected in pocket
Re: Trackball button question
« Reply #4 on: October 26, 2010, 12:33:31 pm »
Theres more than 1 way to skin a cat, but you could easily do it thus:

1. re-wire existing P1 buttons 4,5,6 directly to Opti-Wiz and use as mouse buttons L C R.
2. Map the input actions that were mapped to buttons 4 5 6 in MAME to L C R on the mouse.
3. Go make a sandwich.

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Re: Trackball button question
« Reply #5 on: October 26, 2010, 12:36:42 pm »
Oh yeah, one last thing.  If you intend to only use MAME, you can just map the controls to the mouse clicks, as Vanilla Gorilla describes.   Other emulators likely won't be as flexible though, and might not allow mouse clicks to be assigned as buttons.  So that's why I opted for the DPDT.   But if I was only doing MAME, I would have just wired the mouse clicks straight to the buttons.

Donkbaca

  • Our reptillian overlords would be pleased
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2648
  • Last login:May 09, 2012, 06:28:10 pm
    • Slim built MAME/Xbox cab
Re: Trackball button question
« Reply #6 on: October 26, 2010, 02:20:12 pm »
I think I will wire the mouse buttons straight to the buttons since I intend on using wireless XB360 gamepads for other emulators.  Then all I need to do is map buttons 4-5-6 in mame to mouse L C R.  Thanks!

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Trackball button question
« Reply #7 on: October 27, 2010, 03:45:25 pm »
That's what I did,  it works great
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade