This commit is contained in:
Glenn Maynard
2006-09-21 07:41:22 +00:00
parent 3943ba773c
commit 95faef1776
@@ -485,7 +485,7 @@ void InputHandler_DInput::PollAndAcquireDevices( bool bBuffered )
if( Devices[i].buffered != bBuffered ) if( Devices[i].buffered != bBuffered )
continue; continue;
HRESULT hr = IDirectInputDevice2_Poll( Devices[i].Device ); HRESULT hr = Devices[i].Device->Poll();
if( hr == DIERR_INPUTLOST || hr == DIERR_NOTACQUIRED ) if( hr == DIERR_INPUTLOST || hr == DIERR_NOTACQUIRED )
{ {
INPUTFILTER->ResetDevice( Devices[i].dev ); INPUTFILTER->ResetDevice( Devices[i].dev );