Main > Main Forum

How to handle mouse buttons (DPDT - How to wire it)

<< < (2/3) > >>

markronz:
I've attached a picture I made.    I suspect that I have the 4 outer pins getting wired to the buttons correctly, but I still don't know what should be wired to the two middle pins.

So I guess that's my real question at this point. (along with confirmation that what I DO have filled in is correct.

Thanks!

DillonFoulds:
You're thinking along the right track.
Use your middle 2 poles for ground.
Use your outer four poles wired to buttons, and then to ground through the buttons.

Edit: Wait, i reread your post and now i'm confused. The way i described is so you'll have 2 mouse buttons for your track ball, and buttons 5 and 6 for p1, each pair being selectively en/disabled by the switch.

If you're looking at using p1b5 and p1b6 as your mouse left and right clicks, you'll want to wire as follows:
Middle 2 poles to p1b5 and p1b6 buttons, and then to ground
Top 2 poles to signals for mouse buttons, no switches/buttons involved
Bottom 2 poles for signals to encoder, no switches/buttons involved
This way will switch between encoder functions or mouse functions when the switch is thrown.

markronz:
Thanks! And does it matter which ground wire I connect to the DPDT switch?   I mean, one button is from my xArcade trackball device and that device has it's own ground wires.  Then the other button, P1B5 and 6, will have the ground that runs back to my KeyWiz.  Does it matter which I choose?  Or is any ground good enough?

Sorry, I don't know much about this wiring stuff, so I'm not sure how the ground wire works...

markronz:
I just re-read your edited post.  I'm not sure that I understand any more.   Do you think you could use the paint program to edit my picture here since I don't seem to be following?

Yes, I want to have the switch change P1B5 and P1B6 over to left and right mouse clicks when you flip the switch.

DillonFoulds:
I doubt it would really matter what ground you're using. You may even have the two connected, if you multimeter them.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version