enable patch for dinuthook
This commit is contained in:
parent
9a63cb58bd
commit
f9f2dd9044
1 changed files with 7 additions and 6 deletions
|
@ -560,12 +560,13 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
ip.ki.dwFlags = KEYEVENTF_KEYUP;
|
ip.ki.dwFlags = KEYEVENTF_KEYUP;
|
||||||
SendInput(1, &ip, sizeof(ip));
|
SendInput(1, &ip, sizeof(ip));
|
||||||
|
|
||||||
/* For DirectInput
|
if (g_hook_dinput)
|
||||||
ip.type = INPUT_KEYBOARD;
|
{
|
||||||
ip.ki.wScan = 56; // LeftAlt
|
ip.type = INPUT_KEYBOARD;
|
||||||
ip.ki.dwFlags = KEYEVENTF_KEYUP | KEYEVENTF_SCANCODE;
|
ip.ki.wScan = 56; // LeftAlt
|
||||||
SendInput(1, &ip, sizeof(ip));
|
ip.ki.dwFlags = KEYEVENTF_KEYUP | KEYEVENTF_SCANCODE;
|
||||||
*/
|
SendInput(1, &ip, sizeof(ip));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_ddraw->windowed || g_ddraw->noactivateapp)
|
if (g_ddraw->windowed || g_ddraw->noactivateapp)
|
||||||
|
|
Loading…
Reference in a new issue