From c45fcb7fa96cadd264d2a0182fa1fcf3b453d260 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Fri, 4 Dec 2020 15:09:18 +0100 Subject: [PATCH] fixed old key index storage --- src/kernal/keyboard_m65/mega65_scnkey.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernal/keyboard_m65/mega65_scnkey.s b/src/kernal/keyboard_m65/mega65_scnkey.s index deae8815..ba90bba3 100644 --- a/src/kernal/keyboard_m65/mega65_scnkey.s +++ b/src/kernal/keyboard_m65/mega65_scnkey.s @@ -209,12 +209,13 @@ m65_scnkey_got_key: ; .Y should now contain the key offset in matrix pointed by cpy LSTX beq m65_scnkey_try_repeat ; branch if the same key as previously - sty LSTX ; FALLTROUGH m65_scnkey_got_key_skip_cmp: + sty LSTX + ; Reset key repeat counters lda #CONFIG_KEY_DELAY