From 08db05d1981d62e6ea478ffb6cae2884a6adf15c Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Sun, 26 Jun 2022 19:39:18 +0200 Subject: [PATCH] 7800 pause is now working again (fixes #905) updated doc for 7800 pause hotkey --- docs/index.html | 19 ++++++++++++++++++- src/emucore/EventHandler.cxx | 4 +--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/index.html b/docs/index.html index e9d527f93..223bc60a9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -699,6 +699,18 @@ F4 + + Toggle Black/White TV + - + - + + + + Toggle 7800 pause ¹ + Alt + F3 + Cmd + F3 + + Left Player Difficulty A F5 @@ -729,7 +741,7 @@ F9 - + Save all Time Machine states Alt + F9 Cmd + F9 @@ -777,6 +789,11 @@ Shift-Cmd + P + +
+ ¹ only if "Console" is set to "Atari 7800" in Developer Settings. + +
diff --git a/src/emucore/EventHandler.cxx b/src/emucore/EventHandler.cxx index 7ad4b6813..83468338c 100644 --- a/src/emucore/EventHandler.cxx +++ b/src/emucore/EventHandler.cxx @@ -1659,12 +1659,10 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated) myOSystem.console().switches().update(); } return; - case Event::Console7800Pause: if(pressed && !repeated) { - myEvent.set(Event::ConsoleBlackWhite, 0); - myEvent.set(Event::ConsoleColor, 0); + myEvent.set(Event::Console7800Pause, myOSystem.console().switches().tvColor() ? 1 : 0); if (myIs7800) myOSystem.frameBuffer().showTextMessage("Pause pressed"); myOSystem.console().switches().update();