1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Slows CPC typer to avoid dropped characters.

This commit is contained in:
Thomas Harte 2021-07-15 21:54:02 -04:00
parent d35c7ad127
commit b41e29a83b
2 changed files with 2 additions and 2 deletions

View File

@ -1119,7 +1119,7 @@ template <bool has_fdc> class ConcreteMachine:
} }
HalfCycles get_typer_frequency() const final { HalfCycles get_typer_frequency() const final {
return Cycles(80'000); // Perform one key transition per frame. return Cycles(160'000); // Perform one key transition per frame and a half.
} }
// See header; sets a key as either pressed or released. // See header; sets a key as either pressed or released.

View File

@ -40,7 +40,7 @@ struct KeyboardMapper: public MachineTypes::MappedKeyboardMachine::KeyboardMappe
struct CharacterMapper: public ::Utility::CharacterMapper { struct CharacterMapper: public ::Utility::CharacterMapper {
const uint16_t *sequence_for_character(char character) const override; const uint16_t *sequence_for_character(char character) const override;
bool needs_pause_after_reset_all_keys() const override { return false; } bool needs_pause_after_reset_all_keys() const override { return true; }
bool needs_pause_after_key(uint16_t key) const override; bool needs_pause_after_key(uint16_t key) const override;
}; };