Implemented the shift key mod for II/II+. This fixes a problem with Homeword.
This commit is contained in:
parent
a769bdf256
commit
18ebd06cfe
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue