1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-19 23:29:05 +00:00

Adds F12 as a reset key, triggers cards upon a flush.

This commit is contained in:
Thomas Harte 2018-04-24 09:03:30 -07:00
parent 99de8f1c5c
commit 2f2390b5aa

View File

@ -216,6 +216,7 @@ class ConcreteMachine:
void flush() { void flush() {
update_video(); update_video();
update_audio(); update_audio();
update_cards();
audio_queue_.perform(); audio_queue_.perform();
} }
@ -243,6 +244,11 @@ class ConcreteMachine:
} }
void set_key_pressed(Key key, char value, bool is_pressed) override { 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(is_pressed) {
// If no ASCII value is supplied, look for a few special cases. // If no ASCII value is supplied, look for a few special cases.
if(!value) { if(!value) {