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;
}
+1 -1
View File
@@ -625,7 +625,7 @@ void InputMapper::UpdateTempDItoGI()
// clear out m_tempDItoGI
FOREACH_InputDevice( d )
{
for( int b=0; b<GetNumDeviceButtons(d); b++ )
for( int b=0; b<NUM_DeviceButton; b++ )
{
m_tempDItoGI[d][b].MakeInvalid();
}
-5
View File
@@ -177,11 +177,6 @@ static const CString InputDeviceNames[] = {
XToString( InputDevice, NUM_INPUT_DEVICES );
StringToX( InputDevice );
int GetNumDeviceButtons( InputDevice device )
{
return NUM_DeviceButton;
};
CString DeviceInput::ToString() const
{
if( device == DEVICE_NONE )
-2
View File
@@ -258,8 +258,6 @@ enum DeviceButton
CString DeviceButtonToString( DeviceButton i );
DeviceButton StringToDeviceButton( const CString& s );
int GetNumDeviceButtons( InputDevice device );
const int MAX_DEVICE_BUTTONS = NUM_DeviceButton;
struct DeviceInput