From a9cae2253da7e891e3b062a3fdf212a2b9b04f24 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 2 Oct 2006 23:11:17 +0000 Subject: [PATCH] fix compile --- stepmania/src/arch/Lights/LightsDriver_LinuxParallel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Lights/LightsDriver_LinuxParallel.cpp b/stepmania/src/arch/Lights/LightsDriver_LinuxParallel.cpp index 170cdffb46..44f7111479 100644 --- a/stepmania/src/arch/Lights/LightsDriver_LinuxParallel.cpp +++ b/stepmania/src/arch/Lights/LightsDriver_LinuxParallel.cpp @@ -51,7 +51,9 @@ void LightsDriver_LinuxParallel::Set( const LightsState *ls ) } s += "\n"; - int iNumGameButtonsToShow = INPUTMAPPER->GetInputScheme()->GetNumGameplayButtons(); + int iNumGameButtonsToShow = INPUTMAPPER->GetInputScheme()->ButtonNameToIndex( "Start" ); + if( iNumGameButtonsToShow == GameButton_Invalid ) + iNumGameButtonsToShow = INPUTMAPPER->GetInputScheme()->m_iButtonsPerController; FOREACH_GameController( gc ) { s += ssprintf("Controller%d Bits: ",gc+1);