remove GetNumDeviceButtons

This commit is contained in:
Glenn Maynard
2005-12-28 09:48:32 +00:00
parent 2d1ad839fa
commit 841bbf4c1f
4 changed files with 3 additions and 10 deletions
+2 -2
View File
@@ -103,9 +103,9 @@ void InputFilter::ButtonPressed( const DeviceInput &di, bool Down )
LOG->Warn( "Invalid device %i,%i", di.device, NUM_INPUT_DEVICES );
return;
}
if( di.button >= GetNumDeviceButtons(di.device) )
if( di.button >= NUM_DeviceButton )
{
LOG->Warn( "Invalid button %i,%i", di.button, GetNumDeviceButtons(di.device) );
LOG->Warn( "Invalid button %i,%i", di.button, NUM_DeviceButton );
return;
}