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: Connecting multiple trackballs for custom build  (Read 866 times)

0 Members and 1 Guest are viewing this topic.

Sockser

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:March 25, 2017, 02:37:47 pm
  • I want to build my own arcade controls!
Connecting multiple trackballs for custom build
« on: February 26, 2017, 03:05:26 pm »
I'm currently putting together a custom game in a custom cabinet (hopefully for MAGFest 2017) and the controls entail four trackballs (two for each player) plus like 2-4 buttons (still hashing out some details there). 

I currently have a big pile of HAPP trackballs being shipped to me (7 used ones for $90; a steal!) but in advance of that I'm trying to figure out how this thing is going to go together, electronically speaking.  Theoretically this is all going to be running my custom code on a RasPi, so I've got USB and GPIO to work with.  Is it possible for me to run four trackballs through USB and have linux identify them as four different devices I can read output from?  Worst case scenario, I can run two trackballs to an intermediary board that reports the exact data I need for my game but avoiding that would be nice.


edit:  Looks like the Optipac handles two trackballs, so I should be able to run two optipacs to satisfy my needs, right?
« Last Edit: February 26, 2017, 07:28:49 pm by Sockser »

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:June 25, 2023, 02:23:57 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Connecting multiple trackballs for custom build
« Reply #1 on: February 26, 2017, 08:49:51 pm »
You should

I run two HAPP trackballs in my cabinet, both are seen as simple USB mice by windows.

Effectively, this means they both just control the mouse pointer as if they were one mouse.

But, dig a little deeper into the Windows API and you can get at the individual mouse devices separately. That's what MAME does.

As for linux, not sure, but I'd imagine it works very similarly.

Googling found this,

http://stackoverflow.com/questions/4012352/linux-dual-mice-multiple-mice-with-multiple-mouse-pointers

so it definitely sounds like it's doable under linux, if a little convoluted.