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: Invert Trackball Directions  (Read 2981 times)

0 Members and 1 Guest are viewing this topic.

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Invert Trackball Directions
« on: November 13, 2012, 07:39:24 pm »
Looks like I accidentally installed the trackball upside down.  :banghead:

Instead of having to undo the mounting brackets and cutting a new hole for wiring, is there a way I can just invert the trackball directions in windows or mame?

 

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 12:04:44 pm
  • Designated spam hunter
Re: Invert Trackball Directions
« Reply #1 on: November 13, 2012, 08:04:19 pm »
Swapping the two data lines on each axis should do it IIRC.

X1<==>X2

Y1<==>Y2

Leave the 5v and ground wires as is.


Scott

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Re: Invert Trackball Directions
« Reply #2 on: November 13, 2012, 08:06:59 pm »
Sorry, I should have mentioned that it is connected through PS2.  I guess my only option is to un-mount and start drilling.   :angry:

Thanks though PL1

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 12:04:44 pm
  • Designated spam hunter
Re: Invert Trackball Directions
« Reply #3 on: November 13, 2012, 08:09:45 pm »
It still uses opto boards, or does it have the encoder on the same PCB?


Scott

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Re: Invert Trackball Directions
« Reply #4 on: November 13, 2012, 11:37:20 pm »
I'm really not sure what any of that means?  Sorry, I'm new to most of this stuff.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 12:04:44 pm
  • Designated spam hunter
Re: Invert Trackball Directions
« Reply #5 on: November 14, 2012, 12:27:48 am »
The trackball works like a mechanical mouse.

Further details and better pictures here and there's an explanation of quadrature waveforms here.

There are 4 wires per axis leading to the encoder:
1. 5v - operating voltage for the LED
2. Data A
3. Data B
4. Ground (Sometimes jumpered inside the trackball case, leaving one axis with only 3 wires)

By swapping Data A for Data B, you are swapping quadrature waveform A for waveform B which the encoder translates as turning the other way.




Scott
« Last Edit: July 30, 2016, 12:40:49 pm by PL1 »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Yesterday at 03:57:04 pm
  • ...
Re: Invert Trackball Directions
« Reply #6 on: November 14, 2012, 09:49:01 am »
What he's saying is swapping two of the wires coming from the circuit board will reverse direction.

If you're not comfortable with that, you can invert the axis in MAME.
In the in game menu (TAB by default), go to analogue controls and there should be an option to invert axis.

There should be a line for it in the mame.ini file that will do it globally for all games, but I'm at work and don't have it to look at.

It will still be backwards for everything outside of MAME.

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Re: Invert Trackball Directions
« Reply #7 on: November 14, 2012, 02:24:16 pm »
Thanks for the help everyone.  I decided it would be easier for me to just disassemble the control panel and drill a new hole on the other side of the trackball bracing.  I am wanting to update my artwork anyways, so this will give me a chance to do so.  Again, much thanks!