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: Same button for keyboard and mouse?  (Read 1923 times)

0 Members and 1 Guest are viewing this topic.

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Same button for keyboard and mouse?
« on: July 24, 2016, 09:21:36 pm »
Using an Ipac Ultimate.  Doesn't seem to have a way to assign keyboard to the button press and mouse button to the shifted button press.  It either has to be keyboard OR mouse.  Is there a work around for this?  I want to just have a shifted button act as the mouse button for the times I might need it.  And I'd rather not have to add another button...

Nephasth

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1381
  • Last login:February 15, 2025, 12:57:26 pm
  • Bitches love Centipede
Re: Same button for keyboard and mouse?
« Reply #1 on: July 24, 2016, 10:27:58 pm »
What times might you need it?
%Bartop

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:July 27, 2025, 08:34:04 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Same button for keyboard and mouse?
« Reply #2 on: July 25, 2016, 12:09:27 am »
What times might you need it?
Troof.
***Build what you dig, bro. Build what you dig.***

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: Same button for keyboard and mouse?
« Reply #3 on: July 25, 2016, 03:37:58 am »
It should be possible to do this by manually editing the config file. I will look into this.

Andy

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Same button for keyboard and mouse?
« Reply #4 on: July 25, 2016, 10:25:32 pm »
I back out of the front end into windows a lot to do other stuff like play music, use other programs, etc.  I may not use the mouse button as much once I have everything set up, but I think I will always need it regularly and I'd like to avoid pulling the mouse out while I have a trackball right there.

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:July 27, 2025, 08:34:04 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Same button for keyboard and mouse?
« Reply #5 on: July 25, 2016, 10:27:57 pm »
I use a wireless mouse. Easy peasy.
***Build what you dig, bro. Build what you dig.***

Nephasth

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1381
  • Last login:February 15, 2025, 12:57:26 pm
  • Bitches love Centipede
Re: Same button for keyboard and mouse?
« Reply #6 on: July 25, 2016, 11:36:45 pm »
I use a wireless mouse. Easy peasy.

Problem solved. Let's lock this thread up.
%Bartop

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Same button for keyboard and mouse?
« Reply #7 on: July 26, 2016, 11:38:14 am »
Then again with a shifted button, it would be easier peasier.  I don't have a mouse hole for the mouse to live in either.

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11057
  • Last login:Yesterday at 02:57:21 pm
  • Obey.
    • The Chris Burke Band
Re: Same button for keyboard and mouse?
« Reply #8 on: July 26, 2016, 11:43:31 am »
I've done this.  Enable 'Ease of Access' / mouse keys in Windows, map whatever arcade button you're using to Numpad 5. Done.

Otherwise, get creative with diodes and wiring.




 

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Same button for keyboard and mouse?
« Reply #9 on: July 26, 2016, 11:56:02 am »
Thanks pbj.  I was looking into that.  I was worried that mapping the mouse button to "5" might cause me problems in MAME because wouldn't pressing P1 START also produce a mouse click?  Have you had any issues with that?


Quote
Otherwise, get creative with diodes and wiring.

I could do that too.  Did you have something specific in mind?
« Last Edit: July 26, 2016, 11:57:41 am by JudgeRob »

jeremymtc

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 247
  • Last login:June 14, 2025, 06:24:36 am
Re: Same button for keyboard and mouse?
« Reply #10 on: July 26, 2016, 11:58:59 am »
You don't have to use the keycode for "5" to start, you can use any keycode you want and remap via WinIPAC and/or MAME.

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Same button for keyboard and mouse?
« Reply #11 on: July 26, 2016, 12:12:12 pm »
Yeah, I guess I could remap Start to "7".

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11057
  • Last login:Yesterday at 02:57:21 pm
  • Obey.
    • The Chris Burke Band
Re: Same button for keyboard and mouse?
« Reply #12 on: July 26, 2016, 12:35:24 pm »
Would it hurt anything to have the mouse button and push button inputs hit your PC simultaneously?  Probably not.  Why not just run two wires to your button and have one go to the keyboard input and the other to the mouse input on the Ultimarc board?



JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Same button for keyboard and mouse?
« Reply #13 on: July 26, 2016, 04:27:36 pm »
Hmmm, that's an idea.  I'll have to think about that.  I would just have to splice the return to another port on the ipac.  The second port could be set as mouse.  If I can set it to left mouse click only when shifted and nothing when not shifted...  Then the first port assigned to a keystroke and nothing when shifted...

Good idea.  I'll try it out when I get home. 

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9675
  • Last login:Today at 05:41:59 am
  • Designated spam hunter
Re: Same button for keyboard and mouse?
« Reply #14 on: July 27, 2016, 08:05:23 am »
If I can set it to left mouse click only when shifted and nothing when not shifted...
If you can't set it to nothing when not shifted, you can use an NAND gate with negated inputs.

This circuit only outputs a low (ground) when both inputs are low.

You could build this from a 74LS00 NAND gate and a 74LS04 hex inverter to invert the inputs.


Scott

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Same button for keyboard and mouse?
« Reply #15 on: July 27, 2016, 11:48:59 am »
All right, now we're talking!  :o  I didn't get to test it last night, but I will tonight.  Thanks PL1.

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11057
  • Last login:Yesterday at 02:57:21 pm
  • Obey.
    • The Chris Burke Band
Re: Same button for keyboard and mouse?
« Reply #16 on: July 27, 2016, 11:51:00 am »
Or just remap MAME to work with that button acting as a mouse button.....


PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9675
  • Last login:Today at 05:41:59 am
  • Designated spam hunter
Re: Same button for keyboard and mouse?
« Reply #17 on: July 27, 2016, 01:28:54 pm »
All right, now we're talking!  :o  I didn't get to test it last night, but I will tonight.  Thanks PL1.
LMK if you don't have those ICs on-hand.

I can test the circuit for you using a 74LS02 NOR in place of the 74LS04 hex inverter -- there are several ways to wire it so the logic tables work out the same.   ;D


Scott

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 471
  • Last login:July 13, 2024, 10:00:33 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Same button for keyboard and mouse?
« Reply #18 on: July 28, 2016, 01:21:59 am »
OK, it works the easy way!  Thanks guys.  Since I only have a 2p system I have lots of extra ports to work with.  Here's the deal:  Simply splice a button to feed back into 2 separate ports.  Port 1 will have whatever keyboard stroke you want (ie "G").  Port 1 shifted should be "cleared".  Port 2 will have the shifted function as "left mouse".  Unfortunately, unlike the shifted functions, the ipac software will not let you leave a port's primary function clear, so I set it as "middle 2".  I haven't fully vetted it, but I doubt a middle mouse button 2 will affect anything if inadvertently pressed (it will be pressed anytime there is a normal button press to activate "G").

It is important to clear the shifted function of Port 1.  A mouse click does not work well in windows when pressed simultaneously with a letter.  ;)

So I'm stoked.  No need for extra buttons or mice crawling around.  Thanks for your creative takes.   8)