From d0d579856831a9e3313b4ea5a08476d03093eb9d Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 19 Dec 2005 10:00:47 +0000 Subject: [PATCH] update device names on the fly --- stepmania/src/ScreenTestInput.cpp | 39 ++++++++++++++++++------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/stepmania/src/ScreenTestInput.cpp b/stepmania/src/ScreenTestInput.cpp index 985f250340..ee0f5f4668 100644 --- a/stepmania/src/ScreenTestInput.cpp +++ b/stepmania/src/ScreenTestInput.cpp @@ -28,22 +28,6 @@ void ScreenTestInput::Init() m_textDevices.SetDiffuse( RageColor(1,1,1,1) ); m_textDevices.SetZoom( 0.7f ); m_textDevices.SetHorizAlign( Actor::align_left ); - { - vector vDevices; - vector vDescriptions; - vector vs; - INPUTMAN->GetDevicesAndDescriptions( vDevices, vDescriptions ); - ASSERT( vDevices.size() == vDescriptions.size() ); - for( unsigned i=0; iAddChild( &m_textDevices ); m_textInputs.LoadFromFont( THEME->GetPathF("Common","normal") ); @@ -68,6 +52,29 @@ void ScreenTestInput::Update( float fDeltaTime ) { Screen::Update( fDeltaTime ); + // + // Update devices text + // + { + vector vDevices; + vector vDescriptions; + vector vs; + INPUTMAN->GetDevicesAndDescriptions( vDevices, vDescriptions ); + ASSERT( vDevices.size() == vDescriptions.size() ); + for( unsigned i=0; i asInputs; DeviceInput di;