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: disabling alt-enter in mame or mala?  (Read 6866 times)

0 Members and 1 Guest are viewing this topic.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
disabling alt-enter in mame or mala?
« on: March 14, 2008, 12:48:04 am »
Alt-enter toggles between full screen and window, but you can also activate alt-enter using the user controls of the standard mame key map (I think P2 button 2 is alt, and P3 button 3 is enter, IIRC). Not ideal in a cab. Is there any built in way to disable alt-enter? I'd be happy with mame/mameui32 handling that or with mala doing it.

Otherwise, I'll have to write a little keyboard hook utility to disable it, and I'd rather not resort to that unless there's no other way.

I would think others have run into this problem???
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: disabling alt-enter in mame or mala?
« Reply #1 on: March 14, 2008, 04:56:02 pm »
Mala?  I thought you were moving to Mamewah?

2600

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1630
  • Last login:June 05, 2017, 10:20:56 am
  • I want my own arcade controls!
Re: disabling alt-enter in mame or mala?
« Reply #2 on: March 14, 2008, 04:59:55 pm »
Alt-enter toggles between full screen and window, but you can also activate alt-enter using the user controls of the standard mame key map (I think P2 button 2 is alt, and P3 button 3 is enter, IIRC). Not ideal in a cab. Is there any built in way to disable alt-enter? I'd be happy with mame/mameui32 handling that or with mala doing it.

Otherwise, I'll have to write a little keyboard hook utility to disable it, and I'd rather not resort to that unless there's no other way.

I would think others have run into this problem???

Or you could remap your keys in MAME.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: disabling alt-enter in mame or mala?
« Reply #3 on: March 14, 2008, 07:16:55 pm »
Quote
Mala?  I thought you were moving to Mamewah?

I've considered it. I'm actually evaluating some others when I have a spare moment (it isn't the highest of priorities right now), currently maximus.

Quote
Or you could remap your keys in MAME.

I realize that. It just seems odd that a default keymap would lead to this problem, so I thought maybe there was a way to disable alt-enter. Also figured that since the default keymap can lead to this problem, someone might have already created a solution (built in to a front end, or a stand alone utility).

I already wrote a utility that does something similar (disable the windows key), so maybe I can alter it to disable alt-enter. I'll just have to see how that would work with a key combination since that's a bit different and might be tricky since I still want alt and enter to work individually.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: disabling alt-enter in mame or mala?
« Reply #4 on: March 14, 2008, 10:04:52 pm »
http://www.pctools.com/guides/registry/detail/549/

This is a guide on how to mod the registry to get rid of all windows hotkeys... It was the best I could find...
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: disabling alt-enter in mame or mala?
« Reply #5 on: March 15, 2008, 01:24:34 am »
http://www.pctools.com/guides/registry/detail/549/

This is a guide on how to mod the registry to get rid of all windows hotkeys... It was the best I could find...

Thanks, but that doesn't apply to key combinations handled by an application (like mame's handling of alt-enter). That only applies to win+<key> combinations handled by the OS, and doesn't even apply to the windows key by itself.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: disabling alt-enter in mame or mala?
« Reply #6 on: March 15, 2008, 01:57:10 am »
Well my keyboard hook solution didn't work without disallowing alt and enter to be pressed simultaneously (it effectively eats the enter if alt is down), which is no surprise at all when I think about it.

However, I discovered the real solution. It occurred to me "why wouldn't that be a key mappable function just like anything else?" Sure enough, it is. Simple solution - clear the key for toggle fullscreen! Wish that occurred to me earlier! :dizzy:
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

clhug

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 179
  • Last login:April 04, 2024, 10:49:58 pm
Re: disabling alt-enter in mame or mala?
« Reply #7 on: November 22, 2008, 04:43:11 pm »
This is an older thread so I dont know if TheShanMan will still see this or if someone else might be able to answer.

I have the same issue and thoughts.  Seems like this would be a common issue for anyone with a 4 player cabinet.  I seem to never get through a session on my cabinet without hitting this combination at least once.

I thought about remapping one or the other buttons in MAME but others have to have run into this.  If others have just solved this by remapping what key(s) do they use instead of the default?



However, I discovered the real solution. It occurred to me "why wouldn't that be a key mappable function just like anything else?" Sure enough, it is. Simple solution - clear the key for toggle fullscreen! Wish that occurred to me earlier! :dizzy:

TheShanMan, I don't know if you'll still see this or not, but can you be more specific on how you "clear the key for toggle fullscreen?"  I could be wrong but I'm not aware of any standard way built-in to Windows to accomplish this.  If there is, please point me to it, or if you used a 3rd party tool to do it, can you tell me what tool that was?

Thank you.

clhug

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 179
  • Last login:April 04, 2024, 10:49:58 pm
Re: disabling alt-enter in mame or mala?
« Reply #8 on: November 22, 2008, 04:59:18 pm »
However, I discovered the real solution. It occurred to me "why wouldn't that be a key mappable function just like anything else?" Sure enough, it is. Simple solution - clear the key for toggle fullscreen! Wish that occurred to me earlier! :dizzy:

TheShanMan, I don't know if you'll still see this or not, but can you be more specific on how you "clear the key for toggle fullscreen?"  I could be wrong but I'm not aware of any standard way built-in to Windows to accomplish this.  If there is, please point me to it, or if you used a 3rd party tool to do it, can you tell me what tool that was?

Thank you.

Okay, never mind, I found it.  I guess I should have finished looking through the threads from the search results (that's how I found this thread in the first place).  There were a few other dealing with this.  I was thinking this was referring to somehow canceling the Windows OS own Alt-Enter function.

For anyone else who may stumble across this thread like I did and get confused, I found in another thread that MAME has it's own setting for Toggle Full Screen.  Clearing that out in MAME did the trick.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: disabling alt-enter in mame or mala?
« Reply #9 on: November 22, 2008, 06:10:09 pm »
Yeah, plus I found over time that it just wasn't worth having a button mapped to the alt key (or ctrl key). I know that's how mame does it by default, but I got bit enough times where it was a perfect combo of player 1 hitting the alt button and player "x" hitting button "y", resulting in bizarre behavior "z" that I decided to do away with it.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

clhug

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 179
  • Last login:April 04, 2024, 10:49:58 pm
Re: disabling alt-enter in mame or mala?
« Reply #10 on: November 23, 2008, 11:24:35 am »
Thanks for the response.  So what did you end up remapping to instead of Alt?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: disabling alt-enter in mame or mala?
« Reply #11 on: November 23, 2008, 08:12:22 pm »
IIRC alt was the first or second player 1 button? Those buttons are mapped to h and n for me, but it doesn't really matter - just find any unused key.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

clhug

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 179
  • Last login:April 04, 2024, 10:49:58 pm
Re: disabling alt-enter in mame or mala?
« Reply #12 on: November 23, 2008, 08:48:09 pm »
Yes, P1-B1 is CTRL and P1-B2 is ALT.  Thanks much!