SDL_Delay -> usleep

This commit is contained in:
Glenn Maynard
2004-05-21 03:31:26 +00:00
parent 8bac1efe15
commit 1d9e4c4658
3 changed files with 5 additions and 6 deletions
@@ -76,7 +76,7 @@ InputHandler_DInput::InputHandler_DInput()
g_NumJoysticks = 0;
AppInstance inst;
HRESULT hr = DirectInputCreate(/* SDL_Instance */inst.Get(), DIRECTINPUT_VERSION, &dinput, NULL);
HRESULT hr = DirectInputCreate(inst.Get(), DIRECTINPUT_VERSION, &dinput, NULL);
if ( hr != DI_OK )
RageException::Throw( hr_ssprintf(hr, "InputHandler_DInput: DirectInputCreate") );
@@ -489,7 +489,7 @@ void InputHandler_DInput::InputThreadMain()
/* If we have no buffered devices, we didn't delay at WaitForMultipleObjectsEx. */
if( BufferedDevices.size() == 0 )
SDL_Delay( 50 );
usleep( 50000 );
CHECKPOINT;
}
CHECKPOINT;