show input device list on mapping screen

This commit is contained in:
Chris Danford
2006-01-26 06:17:57 +00:00
parent 58a8830b9d
commit 62833f56cb
5 changed files with 37 additions and 20 deletions
+1 -16
View File
@@ -49,22 +49,7 @@ void ScreenTestInput::Update( float fDeltaTime )
//
// Update devices text
//
{
vector<InputDevice> vDevices;
vector<RString> vDescriptions;
vector<RString> vs;
INPUTMAN->GetDevicesAndDescriptions( vDevices, vDescriptions );
ASSERT( vDevices.size() == vDescriptions.size() );
for( unsigned i=0; i<vDevices.size(); ++i )
{
const RString sDescription = vDescriptions[i];
InputDevice device = vDevices[i];
if( sDescription == "MonkeyKeyboard" )
continue; // hide this
vs.push_back( ssprintf("%s (%s)", sDescription.c_str(), InputDeviceToString(device).c_str()) );
}
m_textDevices.SetText( join("\n",vs) );
}
m_textDevices.SetText( INPUTMAN->GetDisplayDevicesString() );
//
// Update input texts