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: Wire one button up to both mouse click and alternate key press  (Read 1592 times)

0 Members and 1 Guest are viewing this topic.

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Wire one button up to both mouse click and alternate key press
« on: December 17, 2009, 04:51:48 pm »
I'm starting work on a new cabinet soon.   One of the things that I wish I could rid of on my own cabinet are the extra two buttons that I have designated just for the mouse's left and right clicks.  I only use these buttons while playing around with Windows itself (seldom).

On the new cabinet, I will be doing a 2 player cp, with six buttons per player.    I've heard in the past that some people wired up buttons 5 and 6 for player one so that they are the left and right mouse button clicks.    I know that MAME will allow you to assign mouse clicks to the control config, but I am a little concerned about other emulators.   I would venture to guess that not all emulators would support the mouse clicks when mapping buttons.    So my initial thought was that maybe I could wire up one button so that when you press it, it does both a mouse click, but also a key press.  That way, I could use the two buttons as the mouse during Windows operation, but could have normal key assignments for emulators.

Thoughts everyone?   Or if the above scenario would not work, what have other people done to remedy this situation?

Thanks!
« Last Edit: December 21, 2009, 10:47:02 pm by markronz »

Bobulus

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Last login:July 11, 2014, 10:42:28 am
Re: Wire one button up to both mout click and alternate key press
« Reply #1 on: December 17, 2009, 06:45:07 pm »
I was thinking about this, too, but my worry is that if, say, button 6 is mapped to both a keyboard key and right-click, then in an emulator I'll hit that button and the menu will be brought up because I'm right-clicking. So I'm not quite sure how to solve this one.

Hoping someone with more knowledge weights in.

Endaar

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:December 31, 2024, 05:51:19 pm
Re: Wire one button up to both mout click and alternate key press
« Reply #2 on: December 20, 2009, 03:02:37 pm »
Well, I did pinball buttons on my CP, so one side's buttons are wired as mouse buttons. I'd be hesitant to use the "main" buttons as a mouse, since I think you're right that not every emulator will support them.

Endaar

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Wire one button up to both mouse click and alternate key press
« Reply #3 on: December 22, 2009, 04:22:45 pm »
You could hard wire the mouse buttons and then use a switch to select or deselect them so accidental clicks would not occur. A single double pole switch that can switch the grounds would suffice.
« Last Edit: December 22, 2009, 05:30:26 pm by BobA »