Main > Main Forum
one button, two switches
Wade:
I finally added my trackball, but I don't want to add a separate mouse button or two. What kind of resistor/diode/thingy do I need to add so that one button can be wired in parallel to trigger both a Keywiz switch, and a mouse button?
I'm sure this has been asked before but I couldn't come up with the right combo to find hits on the search engine.
Thanks,
Wade
TheTick:
I don't think you'd want a diode.... cause you DO want the key stroke and mouse click both to occur from a single button.
You'll probably better off installing a slide switch on the side of the control panel.... to switch between the button sending a keystroke or a mouse click; on GUI navigation might get screwed up (like if the keystroke generated is CTRL, Alt, or Shift).
_Iz-:
Why not just mount the buttons in the configuration you want, choose 2 to be used as mouse buttons and then DON'T hook those 2 up to the I-Pac/Keywiz, just connect them to the "mouse". Then program mame or what have you to accept mouse clicks instead of keystrokes for those action buttons?
SirPoonga:
--- Quote from: TheTick on May 30, 2003, 04:00:15 pm ---I don't think you'd want a diode.... cause you DO want the key stroke and mouse click both to occur from a single button.
You'll probably better off installing a slide switch on the side of the control panel.... to switch between the button sending a keystroke or a mouse click; on GUI navigation might get screwed up (like if the keystroke generated is CTRL, Alt, or Shift).
--- End quote ---
This will work. And if it it enough for you great :)
I wires a switch to switch player 1 buttons 1 and 2 to the mouse hack and the ipac. I did this because I map player 1 button 1 to enter which is very useful, especially for PC games. The majority of the time the buttons are on mouse. I have the mouse buttons mapped in mame for that.
Here's the dpdt relay I used (part number is on it, from digikey.com).
http://www.fe.donkeyfly.com/images/dpdt.jpg
Wade:
Thanks for the suggestions guys, but I don't want to use a switch because I want my cab to stay as easy to use as possible, for people who don't know all the ins and outs of it.
Also, I was planning to use buttons 5 and 6 of player one. Or, if I use the mouse click in the "Input (all games)" for buttons 5 and 6, will that be the only change I need to make? I don't want to have to make changes to all the 6 button games. I suppose this may work. I'll try it this weekend and see how it goes.
Thanks!
Wade