dinput: Remove MsgWaitForMultipleObjects calls.
This commit is contained in:
parent
cb42253ff3
commit
b22ff8018a
|
@ -282,9 +282,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceState(
|
||||||
if (!This->base.acquired) return DIERR_NOTACQUIRED;
|
if (!This->base.acquired) return DIERR_NOTACQUIRED;
|
||||||
|
|
||||||
if (len != WINE_DINPUT_KEYBOARD_MAX_KEYS)
|
if (len != WINE_DINPUT_KEYBOARD_MAX_KEYS)
|
||||||
return DIERR_INVALIDPARAM;
|
return DIERR_INVALIDPARAM;
|
||||||
|
|
||||||
MsgWaitForMultipleObjectsEx(0, NULL, 0, QS_ALLINPUT, 0);
|
|
||||||
|
|
||||||
EnterCriticalSection(&This->base.crit);
|
EnterCriticalSection(&This->base.crit);
|
||||||
|
|
||||||
|
@ -548,9 +546,7 @@ static HRESULT WINAPI SysKeyboardAImpl_Poll(LPDIRECTINPUTDEVICE8A iface)
|
||||||
TRACE("(%p)\n",This);
|
TRACE("(%p)\n",This);
|
||||||
|
|
||||||
if (!This->base.acquired) return DIERR_NOTACQUIRED;
|
if (!This->base.acquired) return DIERR_NOTACQUIRED;
|
||||||
|
return DI_NOEFFECT;
|
||||||
MsgWaitForMultipleObjectsEx(0, NULL, 0, QS_ALLINPUT, 0);
|
|
||||||
return DI_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const IDirectInputDevice8AVtbl SysKeyboardAvt =
|
static const IDirectInputDevice8AVtbl SysKeyboardAvt =
|
||||||
|
|
Loading…
Reference in New Issue