From 37e3e5ec9772c2bb9bda7cd9adaf67abde4994ac Mon Sep 17 00:00:00 2001 From: Mark Westcott Date: Wed, 4 Jun 2003 20:11:56 +0000 Subject: [PATCH] DInput keyboard handling checks for incoming X11 events. --- dlls/dinput/keyboard/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/dinput/keyboard/main.c b/dlls/dinput/keyboard/main.c index 8c316dec1ff..e27461d5d4d 100644 --- a/dlls/dinput/keyboard/main.c +++ b/dlls/dinput/keyboard/main.c @@ -281,6 +281,8 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceState( if (len != 256) return DIERR_INVALIDPARAM; + MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0); + memcpy(ptr, DInputKeyState, 256); return DI_OK; } @@ -305,6 +307,8 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData( if (dodsize < sizeof(*dod)) return DIERR_INVALIDPARAM; + MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0); + EnterCriticalSection(&(This->crit)); /* Copy item at a time for the case dodsize > sizeof(buffer[n]) */ -- 2.11.4.GIT