mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Slightly improves ZX80 and ZX81 typing speed.
This commit is contained in:
parent
32b2026734
commit
86a09b5e7d
@ -179,3 +179,7 @@ uint16_t *CharacterMapper::sequence_for_character(char character) {
|
||||
else
|
||||
return table_lookup_sequence_for_character(zx80_key_sequences, sizeof(zx80_key_sequences), character);
|
||||
}
|
||||
|
||||
bool CharacterMapper::needs_pause_after_key(uint16_t key) {
|
||||
return key != KeyShift;
|
||||
}
|
||||
|
@ -34,6 +34,8 @@ class CharacterMapper: public ::Utility::CharacterMapper {
|
||||
CharacterMapper(bool is_zx81);
|
||||
uint16_t *sequence_for_character(char character) override;
|
||||
|
||||
bool needs_pause_after_key(uint16_t key) override;
|
||||
|
||||
private:
|
||||
bool is_zx81_;
|
||||
};
|
||||
|
@ -382,7 +382,7 @@ template<bool is_zx81> class ConcreteMachine:
|
||||
}
|
||||
|
||||
HalfCycles get_typer_frequency() final {
|
||||
return Cycles(390'000);
|
||||
return Cycles(146'250);
|
||||
}
|
||||
|
||||
KeyboardMapper *get_keyboard_mapper() final {
|
||||
|
Loading…
Reference in New Issue
Block a user