From dc0f7d909a0b123598d0ebb09ec2184dcec57ca9 Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Sat, 2 Apr 2005 20:18:01 +0000 Subject: [PATCH] Change: make Shift key actually shift manual keyboard inputted chars. --- stepmania/src/ScreenTextEntry.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index c3b1fc33dc..52f81cc54e 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -198,7 +198,13 @@ void ScreenTextEntry::Input( const DeviceInput& DeviceI, const InputEventType ty } else if ( DeviceI.ToChar() >= ' ' ) { - AppendToAnswer( ssprintf( "%c", DeviceI.ToChar() ) ); + bool bIsHoldingShift = + INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_RSHIFT)) || + INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT)); + if ( bIsHoldingShift ) + AppendToAnswer( ssprintf( "%c", DeviceI.ToChar() - 32 ) ); + else + AppendToAnswer( ssprintf( "%c", DeviceI.ToChar() ) ); //If the user wishes to select text in traditional way, start should finish text entry m_iFocusY = KEYBOARD_ROW_SPECIAL;