From 0fe14c6940d05d7b98ee4254ceffcac25e3db5c5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 28 Jan 2006 23:19:26 +0000 Subject: [PATCH] cleanup --- stepmania/src/ScreenTextEntry.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index ea680265e5..a4570c5a34 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -221,7 +221,7 @@ void ScreenTextEntry::Input( const InputEventPlus &input ) if( input.type == IET_FIRST_PRESS ) { - if( input.DeviceI.button == KEY_BACK ) + if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_BACK) ) { BackspaceInAnswer(); } @@ -230,9 +230,8 @@ void ScreenTextEntry::Input( const InputEventPlus &input ) bool bIsHoldingShift = INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_RSHIFT)) || INPUTFILTER->IsBeingPressed( DeviceInput(input.DeviceI.device, KEY_LSHIFT)); - if ( bIsHoldingShift ) + if( bIsHoldingShift ) { - char c = (char)toupper( input.DeviceI.ToChar() ); switch( c )