mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-31 10:14:12 +02:00
use real_ functions
This commit is contained in:
parent
871ccbf196
commit
c8d4cd997e
@ -724,7 +724,7 @@ SHORT WINAPI fake_GetKeyState(int nVirtKey)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return GetKeyState(nVirtKey);
|
return real_GetKeyState(nVirtKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
SHORT WINAPI fake_GetAsyncKeyState(int vKey)
|
SHORT WINAPI fake_GetAsyncKeyState(int vKey)
|
||||||
@ -735,7 +735,7 @@ SHORT WINAPI fake_GetAsyncKeyState(int vKey)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return GetAsyncKeyState(vKey);
|
return real_GetAsyncKeyState(vKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
|
int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
|
||||||
|
@ -775,7 +775,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||||||
if (g_config.hotkeys.unlock_cursor1 &&
|
if (g_config.hotkeys.unlock_cursor1 &&
|
||||||
(wParam == VK_CONTROL || wParam == 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();
|
mouse_unlock();
|
||||||
return 0;
|
return 0;
|
||||||
@ -785,7 +785,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||||||
if (g_config.hotkeys.unlock_cursor2 &&
|
if (g_config.hotkeys.unlock_cursor2 &&
|
||||||
(wParam == g_config.hotkeys.unlock_cursor2 || wParam == VK_MENU || wParam == VK_CONTROL))
|
(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();
|
mouse_unlock();
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user