From 7bec4f7a3ef78cbf61cbd1c1bd2e263e9d6ebc41 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 26 Jan 2006 02:41:35 +0000 Subject: [PATCH] show "space" instead of "Key " --- stepmania/src/arch/InputHandler/InputHandler.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler.cpp b/stepmania/src/arch/InputHandler/InputHandler.cpp index 6b49c80bd6..777980d4a3 100644 --- a/stepmania/src/arch/InputHandler/InputHandler.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler.cpp @@ -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 ); }