fixed 7800 pause button

This commit is contained in:
Thomas Jentzsch 2022-11-23 22:29:43 +01:00
parent cafc3572c3
commit bb1b0ab953
1 changed files with 5 additions and 4 deletions

View File

@ -1660,12 +1660,13 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated)
myOSystem.console().switches().update(); myOSystem.console().switches().update();
} }
return; return;
case Event::Console7800Pause: case Event::Console7800Pause: // only works in 7800 mode
if(pressed && !repeated) if(myIs7800 && !repeated)
{ {
myEvent.set(Event::Console7800Pause, myOSystem.console().switches().tvColor() ? 1 : 0); // Press and release pause button
if (myIs7800) if(pressed)
myOSystem.frameBuffer().showTextMessage("Pause pressed"); myOSystem.frameBuffer().showTextMessage("Pause pressed");
myEvent.set(Event::Console7800Pause, pressed);
myOSystem.console().switches().update(); myOSystem.console().switches().update();
} }
return; return;