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: Changing the Default Keys  (Read 1665 times)

0 Members and 1 Guest are viewing this topic.

Bill Mote

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 202
  • Last login:May 29, 2010, 11:04:28 pm
  • Focus on making things better not bigger.
    • Things That Make Me Mad and How To Fix Them
Changing the Default Keys
« on: July 13, 2005, 09:30:37 am »
I built a 4-player cabinet for my kids (and me).  It's the only Christmas present they're still playing with.

I have noticed though that when they play 3 and 4 player games there is some keyboard combination they're pressing that gets them back into windows.  The game is still running in the background.  You just can't get back to it.  Fortunately, I extended the PCs power button to the side of the cabinet with an arcade button.  So, they just press the button and XP does an orderly shutdown.  Then another press and it comes back up in the MameWAH interface.  Still, that sucks when you're playing a game and you have to start over.

As such, I've remapped all the keys so there are no conflicts.  Player 3 stick controls used to bump into player 2 buttons.  Not that the 2 would ever be used at the same time in a game, but that doesn't stop people from hitting them by accident!  Anyway, I also removed the use of all the "system" keys: CTRL, ATL, SHIFT, etc.  Every control on my panel has a unique non-system key associated with it.  I did leave ESC mapped to my "EXIT" key, "ENTER" mapped to my "SELECT" key and TAB mapped to my "MENU" key, but those buttons are across the top of my panel and out of harms way.

After the remapping I entered the Mame menu and the "general controls" section after that.  I've reset all the controls to match their new mappings.

Does anyone see a downside to this?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Changing the Default Keys
« Reply #1 on: July 13, 2005, 10:24:15 am »
That's cool.  Most people change the controls from default just because of that.  What interface are you using?  Make sure you don't have any "shift" combinations.  Like if using the ipac make sure what you have setup as the shift key and what shifted functions are work.  Ipac's default is player 1 start as the shift key, player 2's start shifted function is esc.  Though you would have had to do a custom mapping to do what you said.  So this is hopefully a non-issue for you.

Bill Mote

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 202
  • Last login:May 29, 2010, 11:04:28 pm
  • Focus on making things better not bigger.
    • Things That Make Me Mad and How To Fix Them
Re: Changing the Default Keys
« Reply #2 on: July 13, 2005, 01:07:06 pm »
We built 5 cabinets around the IPAC/4.  I had forgotten about the "shift" functions.  I'll have to look into that and see.  I guess it's possible that P1 died and was trying to re-enter the game while everyone else was button mashing.  That could have caused some "shifted" key sequence I didn't account for and it would also speak to the rarity of the problem.

Thanks!

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Changing the Default Keys
« Reply #3 on: July 14, 2005, 09:16:58 am »
Would almost bet money your initial problem was ALT (P1B2) and ENTER (P3B3) which MAME equates to "UI toggle fullscreen" or something similar, and you could have just disabled that, but what you did is fine, just a little overkill, IMHO.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Changing the Default Keys
« Reply #4 on: July 14, 2005, 09:22:09 pm »
This is why I don't reccomend the mapping of the alt key nor do I reccomend dedicated menu buttons. 

Kids are button crazy, if they see a button, they'll press it. 

Also the alt-enter combination isn't just a mame shortcut, it's a windows shortcut.  If an app is coded properly alt-enter is supposed to minimize it from fullscreen.  Also on many apps alt-x or alt-f4 closes the application all together.  Luckily this isn't supported in mame, but considering x is probably your button #5 it's not a bad bet that if you have some pc games or other emulators on your machine, having alt on it is gonna cause problems. And of course ctrl+alt+button causes all sorts of maddness.

So the ultimate solution is to remap the "alt" key to something less damaging.  Ctrl and enter don't seem to really effect anything though so they are ok.  It should be noted though that a very very slim amount of games (usually java or flash based ones) use ctrl-F to toggle fullscreen.  Considering the f key is used for the player 2 joystick it might be a safe bet to remap them both while you are at it. 


Gotta remember, mame was created when most games (and mame) ran in pure dos mode.  At that time the ctrl and alt keys didn't cause conflicts because you weren't even in windows.  They defaults are really outdated.  If you look at a modern keyboard, the ctrl and alt keys aren't even the optimum keys for button 1 and 2 as the stupid windows key is in-between them. 


Bill Mote

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 202
  • Last login:May 29, 2010, 11:04:28 pm
  • Focus on making things better not bigger.
    • Things That Make Me Mad and How To Fix Them
Re: Changing the Default Keys
« Reply #5 on: July 14, 2005, 09:33:50 pm »
Well, I've already re-mapped them all.  I'll post my mapping when I get a chance.  I've used only A-Z, 0-9, and the other non-shifted characters on the keyboard: []\;',./-=

I have 4 "admin" buttons across the top of the panel: ESC, TAB, ENTER, and P

I eliminated the use of CTRL, ALT, SHIFT, SPACE, etc.  I have no keys overlapping and there are 1 or 2 more keys available for use.

I don't know if I mentioned that I have 7 buttons on players 1 and 2 and 4 buttons on players 3 and 4.

dot

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Changing the Default Keys
« Reply #6 on: July 14, 2005, 10:00:26 pm »
In that case, something odd is probably going on.  The system doesn't have anything running in the background does it?  Some windows applications are "bossy" and set focus to themselves when they want to alert you or something. 


Bill Mote

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 202
  • Last login:May 29, 2010, 11:04:28 pm
  • Focus on making things better not bigger.
    • Things That Make Me Mad and How To Fix Them
Re: Changing the Default Keys
« Reply #7 on: July 14, 2005, 10:24:46 pm »
No.  We've gotten out of sequence.  My problem was happening before the key remappings.  Not after ;)

dot