From 150c4cb150dc0a537563f5bf8f264a7dbe818efd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 28 Jan 2006 23:29:15 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenTextEntry.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index a4570c5a34..8518b60c7f 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -230,10 +230,9 @@ void ScreenTextEntry::Input( const InputEventPlus &input ) bool bIsHoldingShift = INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_RSHIFT)) || INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_LSHIFT)); + char c = (char)toupper( input.DeviceI.ToChar() ); if( bIsHoldingShift ) { - char c = (char)toupper( input.DeviceI.ToChar() ); - switch( c ) { case '`': c='~'; break; @@ -258,13 +257,9 @@ void ScreenTextEntry::Input( const InputEventPlus &input ) case '.': c='>'; break; case '/': c='?'; break; } + } - AppendToAnswer( ssprintf( "%c", c ) ); - } - else - { - AppendToAnswer( ssprintf( "%c", input.DeviceI.ToChar() ) ); - } + AppendToAnswer( ssprintf( "%c", c ) ); // If the user wishes to select text in traditional way, start should finish text entry m_iFocusY = KEYBOARD_ROW_SPECIAL;