konami jailbreak: game sporadically crashes when played w/keyboard
This commit is contained in:
parent
2dea2fb564
commit
62554257a3
|
@ -517,6 +517,16 @@ static INT32 DrvDraw()
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline void DrvClearOpposites(UINT8* nJoystickInputs) // active low version
|
||||
{
|
||||
if ((*nJoystickInputs & 0x03) == 0x00) {
|
||||
*nJoystickInputs |= 0x03;
|
||||
}
|
||||
if ((*nJoystickInputs & 0x0c) == 0x00) {
|
||||
*nJoystickInputs |= 0x0c;
|
||||
}
|
||||
}
|
||||
|
||||
static INT32 DrvFrame()
|
||||
{
|
||||
watchdog++;
|
||||
|
@ -537,6 +547,8 @@ static INT32 DrvFrame()
|
|||
DrvInputs[1] ^= (DrvJoy2[i] & 1) << i;
|
||||
DrvInputs[2] ^= (DrvJoy3[i] & 1) << i;
|
||||
}
|
||||
DrvClearOpposites(&DrvInputs[1]);
|
||||
DrvClearOpposites(&DrvInputs[2]);
|
||||
}
|
||||
|
||||
INT32 nInterleave = 9;
|
||||
|
|
Loading…
Reference in New Issue