From 8822ce2e86ed0cdfab61cc2e3989d9776044ea9a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 20 Dec 2005 20:30:45 +0000 Subject: [PATCH] cleanup, static --- .../src/arch/InputHandler/InputHandler_DirectInput.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp b/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp index 5646e6a7f0..b661797ab7 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp @@ -211,19 +211,19 @@ static int TranslatePOV(DWORD value) return HAT_VALS[value]; } -HRESULT GetDeviceState(LPDIRECTINPUTDEVICE2 dev, int size, void *ptr) +static HRESULT GetDeviceState( LPDIRECTINPUTDEVICE2 dev, int size, void *ptr ) { - HRESULT hr = IDirectInputDevice2_GetDeviceState(dev, size, ptr); + HRESULT hr = dev->GetDeviceState( size, ptr ); if( hr == DIERR_INPUTLOST || hr == DIERR_NOTACQUIRED ) { - hr = IDirectInputDevice2_Acquire( dev ); - if ( hr != DI_OK ) + hr = dev->Acquire(); + if( hr != DI_OK ) { LOG->Trace( hr_ssprintf(hr, "?") ); return hr; } - hr = IDirectInputDevice2_GetDeviceState(dev, size, ptr); + hr = dev->GetDeviceState( size, ptr ); } return hr;