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 + Stream Deck  (Read 3166 times)

0 Members and 1 Guest are viewing this topic.

jkimrey

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:February 14, 2021, 08:58:41 am
  • I want to build my own arcade controls!
MAME + Stream Deck
« on: April 13, 2019, 08:27:46 pm »
I'm trying to use a Elgato Stream Deck with Mame to add controls that I don't have on my arcade.

For example, I'd like to map a key on the Stream Deck to Coin 1 and another key to Coin 2.

Stream Deck seems to be mapping the key correctly, as it works in other apps, but in MAME, when I go to settings and try to change the keymapping for Coin 1 (for example), MAME64 doesn't see the Stream Deck input; MAME64 only sees keyboard input.

Note that when I hit a button on the Stream Deck when on the search field in MAME64, it DOES show the assigned key (5) as input but for some reason it doesn't work for the Coin assignment...

Any suggestions on how I might get MAME64 to recognize the Stream Deck input?

Thanks
« Last Edit: April 13, 2019, 08:41:22 pm by jkimrey »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19399
  • Last login:March 16, 2024, 05:59:16 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: MAME + Stream Deck
« Reply #1 on: April 13, 2019, 09:05:26 pm »
First off, there are better, cheaper ways to add other functions to mame... I'd suggest you'd look into them first.  Probably one of the best old-school hacks is to hot-glue a bladed microswitch onto your coin door on the inside so that the plastic tab on the coin return switch trips it... boom, you've got inputs for the coin insertion that don't actually require you to insert coins.  Also see shift/shazam keys on the more popular keyboard encoders. 

With that out of the way, this is just a guess, but it sounds like the stream deck is using some sort of simulated (software-based) keyboard input.  Mame just doesn't cooperate with that.  If you can get the deck, via third party software, to use joystick buttons instead, mame WILL accept simulated joysticks. 

jkimrey

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:February 14, 2021, 08:58:41 am
  • I want to build my own arcade controls!
Re: MAME + Stream Deck
« Reply #2 on: April 13, 2019, 09:40:23 pm »
First off, there are better, cheaper ways to add other functions to mame... I'd suggest you'd look into them first.  Probably one of the best old-school hacks is to hot-glue a bladed microswitch onto your coin door on the inside so that the plastic tab on the coin return switch trips it... boom, you've got inputs for the coin insertion that don't actually require you to insert coins.  Also see shift/shazam keys on the more popular keyboard encoders. 

With that out of the way, this is just a guess, but it sounds like the stream deck is using some sort of simulated (software-based) keyboard input.  Mame just doesn't cooperate with that.  If you can get the deck, via third party software, to use joystick buttons instead, mame WILL accept simulated joysticks.

Thanks for the feedback.  So if I understand correctly, instead of software to convert joystick controls to keyboard mapping, I would need the opposite - software to convert keyboard keys to joystick (and button) controls?

Thanks

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: MAME + Stream Deck
« Reply #3 on: April 13, 2019, 09:55:25 pm »
Try adding -keyboardprovider dinput to your MAME command. If that works, you can put it in your mame.ini. Read up on input providers to decide if that's a good enough solution for you.

jkimrey

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:February 14, 2021, 08:58:41 am
  • I want to build my own arcade controls!
Re: MAME + Stream Deck
« Reply #4 on: April 13, 2019, 11:34:55 pm »
Will give that a shot - thanks.

BTW - do you know if making that change will cause issues with my iPac and LEDBlinky?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19399
  • Last login:March 16, 2024, 05:59:16 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: MAME + Stream Deck
« Reply #5 on: April 14, 2019, 12:35:51 am »
That's a good call, I keep forgetting about that.  It shouldn't effect them unless you are using multiple units and only want to use specific ones for mame.