7800 pause is now working again (fixes #905)

updated doc for 7800 pause hotkey
This commit is contained in:
Thomas Jentzsch 2022-06-26 19:39:18 +02:00
parent e253be49d5
commit 08db05d198
2 changed files with 19 additions and 4 deletions

View File

@ -699,6 +699,18 @@
<td>F4</td>
</tr>
<tr>
<td>Toggle Black/White TV</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>Toggle 7800 pause &#185;</td>
<td>Alt + F3</td>
<td>Cmd + F3</td>
</tr>
<tr>
<td>Left Player Difficulty A</td>
<td>F5</td>
@ -729,7 +741,7 @@
<td>F9</td>
</tr>
<tr>
<tr>
<td>Save all Time Machine states</td>
<td>Alt + F9</td>
<td>Cmd + F9</td>
@ -777,6 +789,11 @@
<td>Shift-Cmd + P</td>
</tr>
<tr>
<td colspan="3"><center><font size="-1">
&#185; only if "Console" is set to "Atari 7800" in <b><a href="#Debugger">Developer Settings</a></b>.
</td>
</tr>
</table>
</br>

View File

@ -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();