From 3d91b0a31bd7c326c35fd149cc321a799a6f3251 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 19 Feb 2021 21:55:06 -0500 Subject: [PATCH] Fixes keyboard data return. Input sort of works now! Except that key repeat is way out of control. --- Machines/Apple/AppleIIgs/ADB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Apple/AppleIIgs/ADB.cpp b/Machines/Apple/AppleIIgs/ADB.cpp index d6ca5a345..a0d8c8fae 100644 --- a/Machines/Apple/AppleIIgs/ADB.cpp +++ b/Machines/Apple/AppleIIgs/ADB.cpp @@ -55,7 +55,7 @@ uint8_t GLU::get_keyboard_data() { // The classic Apple II serial keyboard register: // b7: key strobe. // b6–b0: ASCII code. - return (registers_[0] & 0x7f) | (status_ & uint8_t(CPUFlags::KeyboardDataFull)) ? 0x80 : 0x00; + return (registers_[0] & 0x7f) | ((status_ & uint8_t(CPUFlags::KeyboardDataFull)) ? 0x80 : 0x00); } void GLU::clear_key_strobe() {