vaderag Posted November 17, 2022 Share Posted November 17, 2022 I have an issue on my cab where my kids "accidentally" hit the exit button which quits the game I'm not a fan of using two buttons as it's unintuitive, but I would like to have it so that a double press is required before it quits - is this possible? Thanks Quote Link to comment Share on other sites More sharing options...
Mr. RetroLust Posted November 17, 2022 Share Posted November 17, 2022 There is an option in Mame somewhere where you need confirmation to exit, if you cant find it let us know. 1 Quote Link to comment Share on other sites More sharing options...
vaderag Posted November 17, 2022 Author Share Posted November 17, 2022 False alarm - just solved it myself! In Emulator Settings, under "Running Scripts" added the below ;Detect insert double press to send Escape ~Insert:: if (A_PriorHotkey <> "~Insert" or A_TimeSincePriorHotkey > 500) { ; Too much time between presses, so this isn't a double-press. KeyWait, Insert return } Send {Escape} return Set my Exit button as Insert instead of escape (which means it functions as my fast forward under normal circumstances) and then double press Exits How simple! 1 Quote Link to comment Share on other sites More sharing options...
vaderag Posted November 17, 2022 Author Share Posted November 17, 2022 1 minute ago, Mr. RetroLust said: There is an option in Mame somewhere where you need confirmation to exit, if you cant find it let us know. I did actually find this too, but I didn't like it as it gave an alert which says "Press A or Enter" to confirm, (and Escape cancels) - none of which are meaningful on the arcade controls 1 Quote Link to comment Share on other sites More sharing options...
Retrofrogg Posted November 17, 2022 Share Posted November 17, 2022 Nice one vaderag 1 Quote Link to comment Share on other sites More sharing options...
vaderag Posted November 17, 2022 Author Share Posted November 17, 2022 Actually just improved it. Switched my button assignments so that the exit button functions as ESC as standard (for other emulators etc) and set Insert as Exit in Mame. This way I can have the one button have three functions - standard press is fast forward, double press is exit and Shifted press is Reset 👍 ;Detect insert double press to send Inser. Insert set as Exit, Esc set as Fast Forward. Secondary Shifted set as F3 ~Esc:: if (A_PriorHotkey <> "~Esc" or A_TimeSincePriorHotkey > 500) { ; Too much time between presses, so this isn't a double-press. KeyWait, Esc return } Send {Insert} return Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.