1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

use real_ functions

This commit is contained in:
FunkyFr3sh 2024-03-20 05:41:42 +01:00
parent 871ccbf196
commit c8d4cd997e
2 changed files with 4 additions and 4 deletions

View File

@ -724,7 +724,7 @@ SHORT WINAPI fake_GetKeyState(int nVirtKey)
return 0;
}
return GetKeyState(nVirtKey);
return real_GetKeyState(nVirtKey);
}
SHORT WINAPI fake_GetAsyncKeyState(int vKey)
@ -735,7 +735,7 @@ SHORT WINAPI fake_GetAsyncKeyState(int vKey)
return 0;
}
return GetAsyncKeyState(vKey);
return real_GetAsyncKeyState(vKey);
}
int WINAPI fake_GetDeviceCaps(HDC hdc, int index)

View File

@ -775,7 +775,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
if (g_config.hotkeys.unlock_cursor1 &&
(wParam == VK_CONTROL || wParam == g_config.hotkeys.unlock_cursor1))
{
if (GetAsyncKeyState(VK_CONTROL) & 0x8000 && GetAsyncKeyState(g_config.hotkeys.unlock_cursor1) & 0x8000)
if (real_GetAsyncKeyState(VK_CONTROL) & 0x8000 && real_GetAsyncKeyState(g_config.hotkeys.unlock_cursor1) & 0x8000)
{
mouse_unlock();
return 0;
@ -785,7 +785,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
if (g_config.hotkeys.unlock_cursor2 &&
(wParam == g_config.hotkeys.unlock_cursor2 || wParam == VK_MENU || wParam == VK_CONTROL))
{
if ((GetAsyncKeyState(VK_RMENU) & 0x8000) && GetAsyncKeyState(g_config.hotkeys.unlock_cursor2) & 0x8000)
if ((real_GetAsyncKeyState(VK_RMENU) & 0x8000) && real_GetAsyncKeyState(g_config.hotkeys.unlock_cursor2) & 0x8000)
{
mouse_unlock();
return 0;