1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-27 03:18:00 +00:00

Merge pull request #1292 from TomHarte/KeyRepeat

Indicate whether a keypress is a repeat. Treat appropriately in the Apple II.
This commit is contained in:
Thomas Harte
2024-01-01 15:27:25 -05:00
committed by GitHub
12 changed files with 115 additions and 49 deletions

View File

@@ -920,7 +920,7 @@ bool MainWindow::processEvent(QKeyEvent *event) {
if(!keyboardMachine) return true;
auto &keyboard = keyboardMachine->get_keyboard();
keyboard.set_key_pressed(*key, event->text().size() ? event->text()[0].toLatin1() : '\0', isPressed);
keyboard.set_key_pressed(*key, event->text().size() ? event->text()[0].toLatin1() : '\0', isPressed, event->isAutoRepeat());
if(keyboard.is_exclusive() || keyboard.observed_keys().find(*key) != keyboard.observed_keys().end()) {
return false;
}