DInput keyboard handling checks for incoming X11 events.
This commit is contained in:
parent
ef57c4d905
commit
37e3e5ec97
|
@ -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]) */
|
||||
|
|
Loading…
Reference in New Issue