From d1f95a188d9a7fe998400fcd456c6da276d8121c Mon Sep 17 00:00:00 2001 From: Branden Akana Date: Mon, 6 Jan 2025 13:03:56 -1000 Subject: [PATCH] libm8gd: Fix is_key_pressed() returning false positives/negatives --- src/gdm8.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gdm8.cpp b/src/gdm8.cpp index b6d02d9..ccebb09 100644 --- a/src/gdm8.cpp +++ b/src/gdm8.cpp @@ -69,6 +69,7 @@ void M8GDClient::on_key_pressed(uint8_t keybits) if (keybits != last_keybits) { + m8gd->keybits = keybits; for (const M8Key key : M8_KEYS) { // detect press