mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 23:25:00 +00:00
Adds F12 as a reset key, triggers cards upon a flush.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user