From b5392e248b90d329989c091d002d0ac2a06d1a7c Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 9 Mar 2010 17:34:47 +0000 Subject: [PATCH] Correct handling of joysticks --- Src/Display.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Display.cpp b/Src/Display.cpp index 96674d3..8ef5be9 100644 --- a/Src/Display.cpp +++ b/Src/Display.cpp @@ -937,7 +937,9 @@ uint8 C64::poll_joystick(int port) /* Handle keyboard codes */ for (int i = 0; i < 0x51; i++) { - if (table[i] == 0 || table[i] == last_table[i]) + if (table[i] == 0) + continue; + if ( !(i & 0x40) && table[i] == last_table[i] ) continue; TheDisplay->UpdateKeyMatrix(i, table[i] == 1,