From df26767695b9d9ea879312ee20e456fa92c5c6e2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 27 Jan 2005 03:10:44 +0000 Subject: [PATCH] cleanup --- stepmania/src/VirtualKeyboard.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/VirtualKeyboard.cpp b/stepmania/src/VirtualKeyboard.cpp index dbb1969c54..53577b47f0 100644 --- a/stepmania/src/VirtualKeyboard.cpp +++ b/stepmania/src/VirtualKeyboard.cpp @@ -131,14 +131,16 @@ wchar_t VirtualKeyboard::Translate( const DeviceInput& DeviceI, const MenuInput { // make a space or . - if(currentMode != VKMODE_IP) + switch( currentMode ) + { + case VKMODE_PROFILE: { if(cur_string.empty()) *nextChar = true; return ' '; } - else if(currentMode == VKMODE_IP) + case VKMODE_IP: { if(!cur_string.empty()) return '.';