mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 14:14:47 +01:00
add some testing code for dinput games
This commit is contained in:
parent
df9781d774
commit
9a63cb58bd
@ -559,6 +559,13 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
ip.ki.wVk = VK_MENU;
|
||||
ip.ki.dwFlags = KEYEVENTF_KEYUP;
|
||||
SendInput(1, &ip, sizeof(ip));
|
||||
|
||||
/* For DirectInput
|
||||
ip.type = INPUT_KEYBOARD;
|
||||
ip.ki.wScan = 56; // LeftAlt
|
||||
ip.ki.dwFlags = KEYEVENTF_KEYUP | KEYEVENTF_SCANCODE;
|
||||
SendInput(1, &ip, sizeof(ip));
|
||||
*/
|
||||
}
|
||||
|
||||
if (g_ddraw->windowed || g_ddraw->noactivateapp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user