DInput keyboard handling checks for incoming X11 events.

This commit is contained in:
Mark Westcott 2003-06-04 20:11:56 +00:00 committed by Alexandre Julliard
parent ef57c4d905
commit 37e3e5ec97

View File

@ -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]) */