From 3875b7b433bf675ac12c1752fc56a56290becdc9 Mon Sep 17 00:00:00 2001 From: tomcw Date: Mon, 19 Sep 2022 14:44:13 +0100 Subject: [PATCH] Fix for joystick read (fixes #1128) --- source/Joystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Joystick.cpp b/source/Joystick.cpp index 114ea689..323c5dbd 100644 --- a/source/Joystick.cpp +++ b/source/Joystick.cpp @@ -665,9 +665,9 @@ void JoyResetPosition(ULONG nExecutedCycles) const UINT joyNum = (pdl & 2) ? 1 : 0; UINT pdlPos = (pdl & 1) ? ypos[joyNum] : xpos[joyNum]; - // This is from KEGS. It helps games like Championship Lode Runner & Boulderdash + // This is from KEGS. It helps games like Championship Lode Runner, Boulderdash & Learning with Leeper(GH#1128) if (pdlPos >= 255) - pdlPos = 280; + pdlPos = 287; g_paddleInactiveCycle[pdl] = g_nCumulativeCycles + (UINT64)((double)pdlPos * PDL_CNTR_INTERVAL); }