mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

[Feature Request] Possibility to handle signals when fe.overlay.is_up #624

Open feudjey opened 4 years ago

feudjey commented 4 years ago

I think that all is in the title. The fe.add_signal_handler() function doesn't listen when browsing an overlay. Would there be a way to fix that, or is it a wanted behavior ? Thanks.

oomek commented 4 years ago

It's by design. Could you explain the scenario where it could be useful?

feudjey commented 4 years ago

Thanks for the fast answer. I'll try to explain with my bad english... I'd like to consider displays menu and filters menu as a two levels menu. I want to use the "back" signal to show the filters, and then, if I send another "back" signal, I want the displays to appear after the filters menu is closed. When the displays menu is shown, if I send "select", I want to show the filters menu and if I send "back" instead, I whant to close the overlay and go back to the game list. Is that relevant ?

feudjey commented 4 years ago

Although, when in the filters menu, I'd like to be able to use the "previous_display" and "next_display" signals.