This commit is contained in:
Glenn Maynard
2003-07-14 19:12:37 +00:00
parent 4b79170bad
commit a675dc82dd
2 changed files with 1 additions and 2 deletions
@@ -468,7 +468,7 @@ void InputHandler_DInput::InputThread()
int ret = WaitForSingleObjectEx( Handle, Delay, true ); int ret = WaitForSingleObjectEx( Handle, Delay, true );
if( ret == -1 ) if( ret == -1 )
{ {
LOG->Trace( werr_ssprintf(GetLastError(), "WaitForMultipleObjectsEx failed") ); LOG->Trace( werr_ssprintf(GetLastError(), "WaitForSingleObjectEx failed") );
continue; continue;
} }
@@ -93,7 +93,6 @@ bool DIDevice::Open()
dipdw.dwData = INPUT_QSIZE; dipdw.dwData = INPUT_QSIZE;
hr = IDirectInputDevice2_SetProperty(Device, hr = IDirectInputDevice2_SetProperty(Device,
DIPROP_BUFFERSIZE, &dipdw.diph); DIPROP_BUFFERSIZE, &dipdw.diph);
/* XXX: Try to use event notification. It might give better response in a thread. */
if ( hr == DI_POLLEDDEVICE ) if ( hr == DI_POLLEDDEVICE )
{ {
/* This device doesn't support buffering, so we're forced /* This device doesn't support buffering, so we're forced