mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Fix for when joystick not connected (fixes #778)
This commit is contained in:
@@ -650,6 +650,10 @@ BYTE __stdcall JoyReadPosition(WORD programcounter, WORD address, BYTE, BYTE, UL
|
||||
|
||||
BOOL nPdlCntrActive = g_nCumulativeCycles <= (g_nJoyCntrResetCycle + (unsigned __int64) ((double)nPdlPos * PDL_CNTR_INTERVAL));
|
||||
|
||||
// If no joystick connected, then this is always active (GH#778)
|
||||
if (joyinfo[joytype[nJoyNum]] == DEVICE_NONE)
|
||||
nPdlCntrActive = TRUE;
|
||||
|
||||
return MemReadFloatingBus(nPdlCntrActive, nExecutedCycles);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user