show "space" instead of "Key "

This commit is contained in:
Chris Danford
2006-01-26 02:41:35 +00:00
parent c88058395a
commit 7bec4f7a3e
@@ -44,7 +44,12 @@ RString InputHandler::GetDeviceSpecificInputString( const DeviceInput &di )
{
char c = di.ToChar();
if( c )
return ssprintf( "Key %c", c );
{
if( c == ' ' )
return "space"; // Don't show "Key " for space.
else
return ssprintf( "Key %c", c );
}
return DeviceButtonToString( di.button );
}