From 81ddf2d8e090e0ef8bc0dedb9abdec3d4ab0fb88 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 15 Jun 2006 06:17:46 +0000 Subject: [PATCH] show "Space" if the character value is ' ', regardless of the KEY_ value --- stepmania/src/arch/InputHandler/InputHandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler.cpp b/stepmania/src/arch/InputHandler/InputHandler.cpp index 9ceef2042a..c718a61607 100644 --- a/stepmania/src/arch/InputHandler/InputHandler.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler.cpp @@ -141,7 +141,6 @@ RString InputHandler::GetLocalizedInputString( const DeviceInput &di ) case KEY_END: return END.GetValue(); case KEY_UP: return UP.GetValue(); case KEY_DOWN: return DOWN.GetValue(); - case KEY_SPACE: return SPACE.GetValue(); case KEY_LSHIFT: case KEY_RSHIFT: return SHIFT.GetValue(); case KEY_LCTRL: case KEY_RCTRL: return CTRL.GetValue(); case KEY_LALT: case KEY_RALT: return ALT.GetValue(); @@ -153,7 +152,12 @@ RString InputHandler::GetLocalizedInputString( const DeviceInput &di ) default: wchar_t c = DeviceButtonToChar(di.button,false); if( c ) - return Capitalize( WStringToRString(wstring()+c) ); + { + if( c == L' ' ) + return Capitalize( SPACE.GetValue() ); // Don't show "Key " for space. + else + return Capitalize( WStringToRString(wstring()+c) ); + } return Capitalize( DeviceButtonToString(di.button) ); }