mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-26 13:30:41 +00:00
Implemented the shift key mod for II/II+. This fixes a problem with Homeword.
This commit is contained in:
parent
a769bdf256
commit
18ebd06cfe
@ -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…
x
Reference in New Issue
Block a user