| Main > Main Forum |
| Wiring help? |
| (1/1) |
| Pharmer_Scott:
Hi all, I've been lurking on these forums for quite awhile now and you can look for my project announcement fairly soon. I'm currently wiring my CP. I have the Xin Mo2 board and the smaller PS2 trackball. https://www.sparkfun.com/products/10758 When I plug in the USB for testing, it works fine until I try to make a button do double duty with the trackball. I've searched high and low and have found reference to, but no instruction, on how to make a button do "double duty". This is a bartop cabinet with 2 joysticks which have 6 buttons each, and the trackball in the middle. I want to use P1 buttons 4, 5 and 6 (the bottom row of 3) as Left, middle, Right buttons on the trackball. I had assumed it was as simple as soldering/splicing the wires to the button switch. For example - Button 4 has the Yellow wire (left click from the trackball) soldered to the button, along with the lead to the Xin Mo button 4 terminal. The grounds for each (xin mo and tb) are also soldered at the switch terminal. But when I try to assign it in MAME config, it doesn't register when I press the button. If I ONLY solder the wires to the Xin Mo to the button it works fine. I should add here that during testing, I'm only plugging in the USB from the Xin Mo to my laptop. The trackball is a PS2 connector which my laptop doesn't have. My target box does have a PS2 connector but it's not ready just yet :-\ Would this make a difference since the TB has no power? Thanks for any help - I've been dragging my feet a little on this project since July and trying to wrap this thing up before Christmas. -Scott |
| PL1:
--- Quote from: Pharmer_Scott on December 10, 2014, 01:22:46 pm ---I want to use P1 buttons 4, 5 and 6 (the bottom row of 3) as Left, middle, Right buttons on the trackball. --- End quote --- I'm not sure why you want/need these buttons to pull "double duty" as mouse buttons. :dunno Once you finish setup/configuration, why do you want/need mouse buttons for your bartop? Seems like it would cause problems like unwanted right-click popup menus etc. --- Quote from: Pharmer_Scott on December 10, 2014, 01:22:46 pm ---I'm only plugging in the USB from the Xin Mo to my laptop. The trackball is a PS2 connector which my laptop doesn't have. My target box does have a PS2 connector but it's not ready just yet :-\ Would this make a difference since the TB has no power? --- End quote --- I think you have successfully identified two key reasons why the trackball encoder will not register button presses. ;D No PS/2 connection = no power to the trackball encoder and there's no data path from the encoder to the computer. Scott |
| Pharmer_Scott:
--- Quote from: PL1 on December 10, 2014, 02:42:45 pm --- Once you finish setup/configuration, why do you want/need mouse buttons for your bartop? --- End quote --- PL1 - thanks for your reply. I just want those lower 3 buttons to be the ones that operate when playing games like Missile Command or Centipede, etc. instead of the top row. Is that something I can configure MAME on a per game basis? Sorry - still way too new to all of this. I've spent an insane amount of time building it and not much learning how the front end works ;D. If I don't need to wire those leads at all then I'll just secure them and forget about them. --- Quote from: PL1 on December 10, 2014, 02:42:45 pm ---I think you have successfully identified two key reasons why the trackball encoder will not register button presses. ;D No PS/2 connection = no power to the trackball encoder and there's no data path from the encoder to the computer. --- End quote --- Seems really obvious when I read it over again, but my thought process was that since the Xin-Mo, which is operating otherwise, was wired to button 4, I should still see a button press, even though the TB wires wouldn't be doing anything. Follow-up: Until I get the target PC up and running, does anyone see any reason why a PS2->USB adapter wouldn't work with the TB? |
| PL1:
--- Quote from: Pharmer_Scott on December 10, 2014, 05:43:34 pm ---I just want those lower 3 buttons to be the ones that operate when playing games like Missile Command or Centipede, etc. instead of the top row. Is that something I can configure MAME on a per game basis? --- End quote --- Yes. In MAME, press Tab to bring up menu then go into the "Input (this Game)" menu. Remap controls as desired. :cheers: Scott |
| Pharmer_Scott:
:cheers: Mind blown. Thanks |
| Navigation |
| Message Index |