Implemented the shift key mod for II/II+. This fixes a problem with Homeword.

This commit is contained in:
nick_westgate 2009-10-18 05:37:01 +00:00
parent a769bdf256
commit 18ebd06cfe

View File

@ -394,7 +394,16 @@ BYTE __stdcall JoyReadButton(WORD, WORD address, BYTE, BYTE, ULONG nCyclesLeft)
break;
case 0x63:
pressed = (buttonlatch[2] || joybutton[2] || setbutton[2] || (GetKeyState(VK_SHIFT) < 0));
if (IS_APPLE2 && (joyinfo[joytype[1]].device == DEVICE_NONE))
{
// Apple II/II+ with no joystick has the "SHIFT key mod"
// See Sather's Understanding The Apple II p7-36
pressed = !(GetKeyState(VK_SHIFT) < 0);
}
else
{
pressed = (buttonlatch[2] || joybutton[2] || setbutton[2]);
}
buttonlatch[2] = 0;
break;