From c64d9853646130bb4888e4eeee40d0b0b699c905 Mon Sep 17 00:00:00 2001 From: nino-porcino Date: Wed, 8 Dec 2021 21:59:35 +0100 Subject: [PATCH] fix correct way of reading keyboard --- apple1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple1.h b/apple1.h index 3671d08..eefa001 100644 --- a/apple1.h +++ b/apple1.h @@ -55,7 +55,7 @@ void woz_mon() { // returns nonzero if a key has been pressed inline byte keypressed() { #ifdef APPLE1 - return PEEK(KEY_DATA) & 0x80; + return PEEK(KEY_CTRL) & 0x80; #else return 0; #endif