From 841bbf4c1f52f27d62d26193fe697b7b2e1c1a8a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 28 Dec 2005 09:48:32 +0000 Subject: [PATCH] remove GetNumDeviceButtons --- stepmania/src/InputFilter.cpp | 4 ++-- stepmania/src/InputMapper.cpp | 2 +- stepmania/src/RageInputDevice.cpp | 5 ----- stepmania/src/RageInputDevice.h | 2 -- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/stepmania/src/InputFilter.cpp b/stepmania/src/InputFilter.cpp index d657e079fb..30c8f5408a 100644 --- a/stepmania/src/InputFilter.cpp +++ b/stepmania/src/InputFilter.cpp @@ -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; } diff --git a/stepmania/src/InputMapper.cpp b/stepmania/src/InputMapper.cpp index 1e23a65963..07377a4a6b 100644 --- a/stepmania/src/InputMapper.cpp +++ b/stepmania/src/InputMapper.cpp @@ -625,7 +625,7 @@ void InputMapper::UpdateTempDItoGI() // clear out m_tempDItoGI FOREACH_InputDevice( d ) { - for( int b=0; b