pButtonState will contain buttons that are not pressed. Check bDown, too.

This commit is contained in:
Glenn Maynard
2006-12-26 23:04:27 +00:00
parent c58510d128
commit a00bbed82c
+1 -1
View File
@@ -307,7 +307,7 @@ bool InputFilter::IsBeingPressed( const DeviceInput &di, const DeviceInputList *
if( pButtonState == NULL )
pButtonState = &g_CurrentState;
const DeviceInput *pDI = FindItemBinarySearch( pButtonState->begin(), pButtonState->end(), di );
return pDI != NULL;
return pDI != NULL && pDI->bDown;
}
float InputFilter::GetSecsHeld( const DeviceInput &di, const DeviceInputList *pButtonState ) const