mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +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
|
else
|
||||||
return table_lookup_sequence_for_character(zx80_key_sequences, sizeof(zx80_key_sequences), character);
|
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);
|
CharacterMapper(bool is_zx81);
|
||||||
uint16_t *sequence_for_character(char character) override;
|
uint16_t *sequence_for_character(char character) override;
|
||||||
|
|
||||||
|
bool needs_pause_after_key(uint16_t key) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool is_zx81_;
|
bool is_zx81_;
|
||||||
};
|
};
|
||||||
|
@ -382,7 +382,7 @@ template<bool is_zx81> class ConcreteMachine:
|
|||||||
}
|
}
|
||||||
|
|
||||||
HalfCycles get_typer_frequency() final {
|
HalfCycles get_typer_frequency() final {
|
||||||
return Cycles(390'000);
|
return Cycles(146'250);
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyboardMapper *get_keyboard_mapper() final {
|
KeyboardMapper *get_keyboard_mapper() final {
|
||||||
|
Loading…
Reference in New Issue
Block a user