From 2f2390b5aab7f9d33e5cf6fd4f5735b23f4f0687 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 24 Apr 2018 09:03:30 -0700 Subject: [PATCH] Adds F12 as a reset key, triggers cards upon a flush. --- Machines/AppleII/AppleII.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Machines/AppleII/AppleII.cpp b/Machines/AppleII/AppleII.cpp index 868a6a2e7..dd720d1a8 100644 --- a/Machines/AppleII/AppleII.cpp +++ b/Machines/AppleII/AppleII.cpp @@ -216,6 +216,7 @@ class ConcreteMachine: void flush() { update_video(); update_audio(); + update_cards(); audio_queue_.perform(); } @@ -243,6 +244,11 @@ class ConcreteMachine: } void set_key_pressed(Key key, char value, bool is_pressed) override { + if(key == Key::F12) { + m6502_.set_reset_line(is_pressed); + return; + } + if(is_pressed) { // If no ASCII value is supplied, look for a few special cases. if(!value) {