mirror of
https://github.com/TomHarte/CLK.git
synced 2025-07-23 01:24:08 +00:00
Ensures new text is appended to any existing buffer.
TODO: move this into add_typer?
This commit is contained in:
@@ -645,8 +645,12 @@ class ConcreteMachine:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void type_string(const std::string &string) final {
|
void type_string(const std::string &string) final {
|
||||||
|
if(typer_) {
|
||||||
|
typer_->append(string);
|
||||||
|
} else {
|
||||||
Utility::TypeRecipient::add_typer(string, std::make_unique<CharacterMapper>());
|
Utility::TypeRecipient::add_typer(string, std::make_unique<CharacterMapper>());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void tape_did_change_input(Storage::Tape::BinaryTapePlayer *tape) final {
|
void tape_did_change_input(Storage::Tape::BinaryTapePlayer *tape) final {
|
||||||
keyboard_via_.set_control_line_input(MOS::MOS6522::Port::A, MOS::MOS6522::Line::One, !tape->get_input());
|
keyboard_via_.set_control_line_input(MOS::MOS6522::Port::A, MOS::MOS6522::Line::One, !tape->get_input());
|
||||||
|
Reference in New Issue
Block a user