remove GetNumDeviceButtons
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user