mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-15 11:32:29 +00:00
Improve +4 typing speed.
This commit is contained in:
parent
03d3efa323
commit
3aeb0bba71
@ -77,6 +77,10 @@ struct KeyboardMapper: public MachineTypes::MappedKeyboardMachine::KeyboardMappe
|
||||
|
||||
struct CharacterMapper: public ::Utility::CharacterMapper {
|
||||
const uint16_t *sequence_for_character(char character) const final;
|
||||
bool needs_pause_after_reset_all_keys() const final { return false; }
|
||||
bool needs_pause_after_key(uint16_t key) const {
|
||||
return key != Key::Shift && key != Key::Commodore && key != Key::Control;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ bool Typer::type_next_character() {
|
||||
if(string_pointer_ == string_.size()) return false;
|
||||
}
|
||||
|
||||
if(character_mapper_.needs_pause_after_key(key_pressed)) {
|
||||
if(key_pressed && character_mapper_.needs_pause_after_key(key_pressed)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user