mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix keyboard not working with devmode TRUE
This commit is contained in:
parent
0af9bbb88f
commit
c52544ad6f
@ -69,7 +69,7 @@ static HRESULT WINAPI fake_did_GetDeviceData(
|
||||
|
||||
HRESULT result = real_did_GetDeviceData(This, cbObjectData, rgdod, pdwInOut, dwFlags);
|
||||
|
||||
if (SUCCEEDED(result) && g_ddraw && !g_mouse_locked)
|
||||
if (SUCCEEDED(result) && This == g_mouse_device && !g_mouse_locked && !g_config.devmode)
|
||||
{
|
||||
if (pdwInOut)
|
||||
{
|
||||
@ -91,7 +91,7 @@ static HRESULT WINAPI fake_did_GetDeviceState(IDirectInputDeviceA* This, DWORD c
|
||||
|
||||
HRESULT result = real_did_GetDeviceState(This, cbData, lpvData);
|
||||
|
||||
if (SUCCEEDED(result) && g_ddraw && !g_mouse_locked)
|
||||
if (SUCCEEDED(result) && This == g_mouse_device && !g_mouse_locked && !g_config.devmode)
|
||||
{
|
||||
if (cbData > 0 && lpvData)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user