cleanup, static
This commit is contained in:
@@ -211,19 +211,19 @@ static int TranslatePOV(DWORD value)
|
|||||||
return HAT_VALS[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 )
|
if( hr == DIERR_INPUTLOST || hr == DIERR_NOTACQUIRED )
|
||||||
{
|
{
|
||||||
hr = IDirectInputDevice2_Acquire( dev );
|
hr = dev->Acquire();
|
||||||
if( hr != DI_OK )
|
if( hr != DI_OK )
|
||||||
{
|
{
|
||||||
LOG->Trace( hr_ssprintf(hr, "?") );
|
LOG->Trace( hr_ssprintf(hr, "?") );
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = IDirectInputDevice2_GetDeviceState(dev, size, ptr);
|
hr = dev->GetDeviceState( size, ptr );
|
||||||
}
|
}
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
|
|||||||
Reference in New Issue
Block a user