mirror of https://github.com/stella-emu/stella.git
an attempt to map F1 (Select) to StellaSettingsDialog
This commit is contained in:
parent
fe398360fb
commit
25cbc2db3a
|
@ -176,6 +176,9 @@ void PhysicalKeyboardHandler::setDefaultMapping(Event::Type event, EventMode mod
|
|||
setDefaultKey( KBDK_ESCAPE, Event::UICancel );
|
||||
|
||||
setDefaultKey( KBDK_BACKSPACE, Event::UIPrevDir );
|
||||
#ifdef RETRON77
|
||||
setDefaultKey( KBDK_F1, Event::CmdMenuMode);
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -27,6 +27,9 @@
|
|||
#include "MD5.hxx"
|
||||
#include "OptionsDialog.hxx"
|
||||
#include "GlobalPropsDialog.hxx"
|
||||
#ifdef RETRON77
|
||||
#include "StellaSettingsDialog.hxx"
|
||||
#endif
|
||||
#include "MessageBox.hxx"
|
||||
#include "OSystem.hxx"
|
||||
#include "FrameBuffer.hxx"
|
||||
|
@ -223,6 +226,9 @@ LauncherDialog::LauncherDialog(OSystem& osystem, DialogContainer& parent,
|
|||
// Create global props dialog, which is used to temporarily overrride
|
||||
// ROM properties
|
||||
myGlobalProps = make_unique<GlobalPropsDialog>(this, osystem.frameBuffer().font());
|
||||
#ifdef RETRON77
|
||||
myStellaSettingsDialog = make_unique<StellaSettingsDialog>(osystem, parent, _font, w, h);
|
||||
#endif
|
||||
|
||||
// Do we show only ROMs or all files?
|
||||
bool onlyROMs = instance().settings().getBool("launcherroms");
|
||||
|
@ -456,6 +462,12 @@ void LauncherDialog::handleKeyDown(StellaKey key, StellaMod mod)
|
|||
// Control-R (reload ROM listing)
|
||||
if(StellaModTest::isControl(mod) && key == KBDK_R)
|
||||
updateListing();
|
||||
#ifdef RETRON77
|
||||
else if(key == KBDK_F1)
|
||||
{
|
||||
myStellaSettingsDialog->open();
|
||||
}
|
||||
#endif
|
||||
else
|
||||
Dialog::handleKeyDown(key, mod);
|
||||
}
|
||||
|
|
|
@ -26,6 +26,9 @@ class GameList;
|
|||
class BrowserDialog;
|
||||
class OptionsDialog;
|
||||
class GlobalPropsDialog;
|
||||
#ifdef RETRON77
|
||||
class StellaSettingsDialog;
|
||||
#endif
|
||||
class OSystem;
|
||||
class Properties;
|
||||
class EditTextWidget;
|
||||
|
@ -102,6 +105,9 @@ class LauncherDialog : public Dialog
|
|||
unique_ptr<GameList> myGameList;
|
||||
unique_ptr<ContextMenu> myMenu;
|
||||
unique_ptr<GlobalPropsDialog> myGlobalProps;
|
||||
#ifdef RETRON77
|
||||
unique_ptr<StellaSettingsDialog> myStellaSettingsDialog;
|
||||
#endif
|
||||
unique_ptr<BrowserDialog> myRomDir;
|
||||
|
||||
ButtonWidget* myStartButton;
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
|
||||
class PopUpWidget;
|
||||
|
||||
#ifdef RETRON77
|
||||
#include "Props.hxx"
|
||||
#endif
|
||||
#include "Dialog.hxx"
|
||||
|
||||
namespace GUI {
|
||||
|
|
Loading…
Reference in New Issue