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: USB joystick commands to hotkeys?  (Read 2773 times)

0 Members and 1 Guest are viewing this topic.

yalborap

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:November 05, 2015, 03:19:12 am
USB joystick commands to hotkeys?
« on: July 28, 2008, 09:49:42 pm »
So, for various reasons, I'm setting up my MaLa rig with USB joysticks, instead of running through a keyboard encoder. I've managed to get MOST of my settings working right...Except for a few. Namely, stuff like Exit commands in emulators. Now, if I was running through a keyboard encoder, I'd just use some hotkeys through MaLa. Problem solved, right?

Issue is, I'm not. I'm using USB gamepads.

Hence, I come to you guys. What are my options for sending 'exit' commands to my emulators? The tricky part is, I don't really have room for dedicated exit buttons, so I want/need to use key-combos. Does this mean I'm out of luck, or can it be made to work?

Thanks in advance for any help or advice you can offer.

csa3d

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 872
  • Last login:March 07, 2011, 08:16:35 am
  • Will game for food
    • Galaxian Mame Conversion
Re: USB joystick commands to hotkeys?
« Reply #1 on: July 29, 2008, 12:28:08 am »
if you are a bit code-savy, then google for AutoHotkey.  I've achieved shifted button combos in the past, but it took a bunch of reading and experimenting with examples from the forums.  Hope that helps.

-csa

yalborap

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:November 05, 2015, 03:19:12 am
Re: USB joystick commands to hotkeys?
« Reply #2 on: July 29, 2008, 05:43:33 am »
Hmm...I dug up an old app I'd forgotten about for just such an occasion, JoyToKey, and while it works fine with most emulators, MAME hates it.

Further examination has showed that MAME is apparently on a 'rawinput' or somesuch system now, at a lower level than my app can replicate keypresses.

Which brings us to option B. Is there any file or any option within MAME somewhere where I can set an 'exit' command to my gamepad?