Suppress AKD support for II and II+ models. (Fixed #116)

This commit is contained in:
tomcw 2018-05-28 22:36:00 +01:00
parent 0d4be07e7e
commit a07407c6f8
2 changed files with 5 additions and 7 deletions

View File

@ -1402,13 +1402,6 @@ LRESULT CALLBACK FrameWndProc (
case WM_KEYUP:
KeybSpecialKeyTransition(WM_KEYUP, wparam);
if (wparam == VK_ESCAPE || wparam == VK_SPACE || wparam == VK_TAB)
{
char str[40];
sprintf(str, "WM_KEYUP: %d\n", wparam);
OutputDebugString(str);
}
// Process is done in WM_KEYUP: VK_F1 VK_F2 VK_F3 VK_F4 VK_F5 VK_F6 VK_F7 VK_F8
if ((wparam >= VK_F1) && (wparam <= VK_F8) && (buttondown == (int)wparam-VK_F1))
{

View File

@ -466,6 +466,11 @@ BYTE __stdcall KeybReadFlag (WORD, WORD, BYTE, BYTE, ULONG)
keywaiting = 0;
if (IS_APPLE2) // Include Pravets machines too?
return keycode;
// AKD
bool bState = GetKeyState(lastvirtkey) < 0;
GetKeyStateOfSpecialAKD(lastvirtkey, bState);