Snapshots now work in PAUSE mode.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3150 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2015-03-15 21:53:28 +00:00
parent 31e59f12dc
commit 5c23739f00
2 changed files with 18 additions and 6 deletions

View File

@ -32,6 +32,8 @@
* Fixed bug when running ROMs using AtariVox controllers; the app would
crash upon exiting the ROM.
* Snapshot functionality now works while the emulation is paused.
* Certain textfields in the UI now have filtering enabled, preventing
insertion of illegal characters. This will be extended throughout
the code in future releases.

View File

@ -551,10 +551,20 @@ void EventHandler::handleKeyEvent(StellaKey key, StellaMod mod, bool state)
return;
// Otherwise, let the event handler deal with it
if(myState == S_EMULATE)
handleEvent(myKeyTable[key][kEmulationMode], state);
else if(myOverlay != nullptr)
myOverlay->handleKeyEvent(key, mod, state);
switch(myState)
{
case S_EMULATE:
handleEvent(myKeyTable[key][kEmulationMode], state);
break;
case S_PAUSE:
if(myKeyTable[key][kEmulationMode] == Event::TakeSnapshot)
handleEvent(myKeyTable[key][kEmulationMode], state);
break;
default:
if(myOverlay != nullptr)
myOverlay->handleKeyEvent(key, mod, state);
break;
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -812,10 +822,10 @@ void EventHandler::handleSystemEvent(SystemEvent e, int, int)
{
switch(e)
{
#if 0
case EVENT_WINDOW_EXPOSED:
myOSystem.frameBuffer().refresh();
myOSystem.frameBuffer().update();
break;
#if 0
case EVENT_WINDOW_MINIMIZED:
if(myState == S_EMULATE) enterMenuMode(S_MENU);
break;