Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: vicmarto on April 24, 2015, 08:52:50 AM

Title: A combination of keys as Exit Hotkey?
Post by: vicmarto on April 24, 2015, 08:52:50 AM
Hello!

Is it possible to asign a combination of keys as the Exit Hotkey? If not, this would be a good feature.

I control my PC just with a Joypad, then, exit from emulators with a joypad key combination would be awesome.

Thank you very much for your excellent work.

P/S: And, please, excuse my poor english!  :-X
Title: Re: A combination of keys as Exit Hotkey?
Post by: akafox on April 24, 2015, 10:09:23 AM
That is possible but your were not clear on what you want to exit. Do you want to exit the front end (attract mode) or the emulator. I also use a game controller on my system. I use a program called anti-micro. I have the escape key mapped  to a button on my controller (it exits out of all my emulators and the front end). I can use it to mimic keyboard keys to a button on my controller (much like MAME) does. Here is the link https://github.com/Ryochan7/antimicro/releases (https://github.com/Ryochan7/antimicro/releases) choose the one that is right for your operating system. Some emulators don't exit the say way. though you can force them to use the esc key using this program http://lustark.com/closemul/

P.S. Your english is fine! :)
Title: Re: A combination of keys as Exit Hotkey?
Post by: vicmarto on April 24, 2015, 10:18:27 AM
Sorry, I meant exit from emulator (and return to attract-mode).
Attract-mode 1.5+ has the option to configure an exit hotkey to force the emulators to exit, but, can this be assigned to a combination of joypad keys, or only to one key?

Anti-micro seems interesting, I will give a try. Thanks!!
Title: Re: A combination of keys as Exit Hotkey?
Post by: akafox on April 24, 2015, 07:14:05 PM
I thought you meant that. I am not sure actually. Anti-micro has worked well for me though.
Title: Re: A combination of keys as Exit Hotkey?
Post by: raygun on April 28, 2015, 10:32:05 PM
Sorry, I meant exit from emulator (and return to attract-mode).
Attract-mode 1.5+ has the option to configure an exit hotkey to force the emulators to exit, but, can this be assigned to a combination of joypad keys, or only to one key?

Anti-micro seems interesting, I will give a try. Thanks!!

Hi Vicmarto, the built in feature in Attractmode doesn't support key combos.  It has to be a single input/key/button...

Title: Re: A combination of keys as Exit Hotkey?
Post by: vicmarto on April 29, 2015, 01:26:01 AM
Hi Vicmarto, the built in feature in Attractmode doesn't support key combos.  It has to be a single input/key/button...

Then, can I make a request for the next version, it would be a very interesting and useful feature. It is possible?

Thanks for your excellent work.
Title: Re: A combination of keys as Exit Hotkey?
Post by: raygun on April 30, 2015, 09:55:46 AM
Ok, I'll add it to the list of feature requests...

it shouldn't be too difficult to add support for combos involving the Ctrl, Shift and Alt keys.
Title: Re: A combination of keys as Exit Hotkey?
Post by: vicmarto on May 05, 2015, 06:11:56 AM
Wow! That would be fantastic! Thank you very much!!
Title: Re: A combination of keys as Exit Hotkey?
Post by: vicmarto on August 05, 2015, 01:37:08 PM
Ok, I'll add it to the list of feature requests...

it shouldn't be too difficult to add support for combos involving the Ctrl, Shift and Alt keys.

Hello raygun, I'm sorry but... do you remember this...?
Title: Re: A combination of keys as Exit Hotkey?
Post by: akafox on August 05, 2015, 09:10:54 PM
Ray has been busy, but I have to admit that would be nice Raygun. I can not get that hotkey feature to work though seems like would be nice to use kega fusion. Full screen dies on esc with windows but not linux.
Title: Re: A combination of keys as Exit Hotkey?
Post by: poyomg on June 04, 2017, 07:44:02 AM
The last version has this feature, I exit my games with the L2+R2 combo from my PS gamepad ;)

PD: I would like to request a "Confirm exit" instance (Yes/No), so I can avoid being accidentally expelled from the game.
Thanks!
Title: Re: A combination of keys as Exit Hotkey?
Post by: Favdeacon on June 05, 2017, 09:49:03 AM
Attract-mode 1.5+ has the option to configure an exit hotkey to force the emulators to exit

Does it really? The configurable keys for "exit" and "exit to desktop" work only on AM itself. The former asks before exiting, the latter doesn't.

What keys you can bind in the emulators depends on the emulators alone. MAME for example can bind combined keystrokes for many years, many YouTube videos show people exiting by pressing two or more buttons on their MAME machines.

The last resort if an emulator doesn't allow key combinations is an external key manager like akafox suggested.

edit:

PD: I would like to request a "Confirm exit" instance (Yes/No), so I can avoid being accidentally expelled from the game.

At least MAME has the option "Confirm quit from machines" in its Miscellaneous Options.
Title: Re: A combination of keys as Exit Hotkey?
Post by: hermine.potter on June 05, 2017, 09:55:45 PM
@Favdeacon
It's possible to exit an emulator first (so you'll be back in AM immediately):

start AM > press TAB Key > Emulators > choose your emulator system > set 'Exit Hotkey' with button(s)

this works with mame too
Title: Re: A combination of keys as Exit Hotkey?
Post by: Favdeacon on June 05, 2017, 11:07:43 PM
start AM > press TAB Key > Emulators > choose your emulator system > set 'Exit Hotkey' with button(s)

Ah, I overlooked that, thanks. But it doesn't work either, at least with mame on my Linux system (Kubuntu 14.04). When I set different exit keys in mame and in AM unter Emulators > mame, only the one set in mame exits it.
Title: Re: A combination of keys as Exit Hotkey?
Post by: hermine.potter on June 06, 2017, 11:42:46 PM
@Favdeacon
just tested on my linux test-system (ubuntu 17.04; mame 0.182; attract 2.2.0-3):
wasn't able to exit mame with AM-Hotkey too (don't know why not).

on my windows-system, it works perfect.
Title: Re: A combination of keys as Exit Hotkey?
Post by: Favdeacon on June 07, 2017, 04:57:59 AM
@hermine.potter:

My mame 0.185 doesn't react to a normal TERM signal, e.g. "kill $(pidof mame)". Only the KILL signal ends the mame process, e.g. "kill -KILL $(pidof mame)". Thus, in case AM tries to end mame with TERM, it won't work because of mame ignoring it. To my knowledge, this is not a typical behaviour for a Linux program. Most react to TERM with termination.

Could you test it with other emulators?

And how does one report those issues to the AM developers?
Title: Re: A combination of keys as Exit Hotkey?
Post by: hermine.potter on June 07, 2017, 05:45:16 AM
@Favdeacon

tested with znes : was able to exit emulator via hotkey => works

report => on github (https://github.com/mickelson/attract/issues)
Title: Re: A combination of keys as Exit Hotkey?
Post by: Favdeacon on June 07, 2017, 02:18:41 PM
tested with znes : was able to exit emulator via hotkey => works

Then it may be caused by mame's unwillingness to be terminated on Linux.  :P

Quote
report => on github (https://github.com/mickelson/attract/issues)

Thanks!