mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-29 08:30:04 +00:00
Fix for joystick read (fixes #1128)
This commit is contained in:
parent
4c83186545
commit
3875b7b433
@ -665,9 +665,9 @@ void JoyResetPosition(ULONG nExecutedCycles)
|
|||||||
const UINT joyNum = (pdl & 2) ? 1 : 0;
|
const UINT joyNum = (pdl & 2) ? 1 : 0;
|
||||||
UINT pdlPos = (pdl & 1) ? ypos[joyNum] : xpos[joyNum];
|
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)
|
if (pdlPos >= 255)
|
||||||
pdlPos = 280;
|
pdlPos = 287;
|
||||||
|
|
||||||
g_paddleInactiveCycle[pdl] = g_nCumulativeCycles + (UINT64)((double)pdlPos * PDL_CNTR_INTERVAL);
|
g_paddleInactiveCycle[pdl] = g_nCumulativeCycles + (UINT64)((double)pdlPos * PDL_CNTR_INTERVAL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user