From 03fc38558fd83bf5fa3896c54261002d088b25e9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 27 Jan 2005 03:07:09 +0000 Subject: [PATCH] cleanup --- stepmania/src/VirtualKeyboard.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/stepmania/src/VirtualKeyboard.cpp b/stepmania/src/VirtualKeyboard.cpp index 2124b7cde6..8b21587fe9 100644 --- a/stepmania/src/VirtualKeyboard.cpp +++ b/stepmania/src/VirtualKeyboard.cpp @@ -39,10 +39,12 @@ wchar_t VirtualKeyboard::Translate( const DeviceInput& DeviceI, const MenuInput if(button == MENU_BUTTON_RIGHT) { *nextChar = true; - if(currentMode == VKMODE_PROFILE) - return ' '; - else - return '0'; + switch( currentMode ) + { + case VKMODE_PROFILE: return ' '; + case VKMODE_IP: return '0'; + default: FAIL_M( ssprintf("%i", currentMode) ); + } } else if(button == MENU_BUTTON_UP) {