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