mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-14 11:25:43 +00:00
Implemented the shift key mod for II/II+. This fixes a problem with Homeword.
This commit is contained in:
@@ -394,7 +394,16 @@ BYTE __stdcall JoyReadButton(WORD, WORD address, BYTE, BYTE, ULONG nCyclesLeft)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x63:
|
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;
|
buttonlatch[2] = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user