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: Mame Raw Input and Joy2key  (Read 8926 times)

0 Members and 1 Guest are viewing this topic.

EVEGames

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:February 15, 2018, 05:14:39 pm
Mame Raw Input and Joy2key
« on: April 29, 2008, 11:18:44 pm »
Now that a half dozen builds have been released since MAME switched to Raw Input, I was wondering if any Joy2key users had found workarounds that they would be willing to share. 

I searched the forums and found one interesting thread
http://forum.arcadecontrols.com/index.php?topic=70088.0
where headkaze "...figured out how to hook the Raw Input API's and inject keys", but did not elaborate.

I realize I can still map joystick buttons directly to MAME inputs in the post- .116 builds, but I cannot send special keycodes such as ESC using Joy2key's shift function (holding down the designated shift button reassigns the remaining buttons to alternate values, such as the ESC key).  :banghead:

If anyone has used "APIHook" or similar software to get around this problem, I sure would like to hear about it.  I don't see a new version of Joy2key on the horizon any time soon.

Thanks guys,
EVEGames

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Raw Input and Joy2key
« Reply #1 on: April 30, 2008, 12:32:22 pm »
I didn't elaborate because it can be a sensitive issue. I'm not sure I understand your problem since you can map joysticks directly in Mame so why do you even need Joy2Key? Also if you need a shift function then just use IPAC's shift function. Am I missing something here?

BTW Using an API Hook on the Raw Input System while it works for injecting keys in Mame I'm not sure if I'd want to use it for gameplay input as you need to fake WM_INPUT messages and that might cause a delay (although it might not be noticable).

EVEGames

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:February 15, 2018, 05:14:39 pm
Re: Mame Raw Input and Joy2key
« Reply #2 on: April 30, 2008, 10:01:58 pm »
Hey there Headkaze.
I run MAME on a small Shuttle computer hooked up to a projector, with neither a control panel nor a keyboard for input - I control the whole system via dual N64 controllers hooked up through USB adapters.  Joy2key gives me the ability to send ESC and other keycodes to MAME straight from the controllers.  So although I can still map my controllers to the Player 1 and Player 2 controls in MAME and play the games just like before, I can't Pause, access the Configuration Menu, or exit the game without using a keyboard.
Is it the end of the world to have to hook up a keyboard, certainly not.  It is a computer, after all. :)  It's just a LOT less elegant than my previous input solution.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Raw Input and Joy2key
« Reply #3 on: April 30, 2008, 10:21:32 pm »
I still don't get it. You can map Pause, Config Menu and Exit (UI Cancel) to be any joystick button or key you want. So just remap them in Mame.

EVEGames

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:February 15, 2018, 05:14:39 pm
Re: Mame Raw Input and Joy2key
« Reply #4 on: May 01, 2008, 08:24:12 pm »
Headkaze,
I'm embarrased to admit it, but I forgot you can remap MAME's user interface functions.
N64 controller has plenty of extra buttons, problem solved. 
Thanks for setting me straight  :cheers:

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Raw Input and Joy2key
« Reply #5 on: May 01, 2008, 09:55:45 pm »
Headkaze,
I'm embarrased to admit it, but I forgot you can remap MAME's user interface functions.
N64 controller has plenty of extra buttons, problem solved. 
Thanks for setting me straight  :cheers:

hehe No worries ;) I was sure there was a way to do what you wanted without the need for Joy2Key. I still haven't found a good reason to release a utility to inject keys into Mame and it's because all input can be remapped in Mame anyway.

 :cheers: