From 3867d6261b708c91f18d73e28df406f09f70f9ba Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Sat, 11 Sep 2004 16:55:01 +0000 Subject: [PATCH] Fix: no blank lines sent to server, autorepeating works. --- stepmania/src/ScreenNetSelectMusic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenNetSelectMusic.cpp b/stepmania/src/ScreenNetSelectMusic.cpp index a30172b73a..570188b191 100644 --- a/stepmania/src/ScreenNetSelectMusic.cpp +++ b/stepmania/src/ScreenNetSelectMusic.cpp @@ -244,10 +244,9 @@ void ScreenNetSelectMusic::Input( const DeviceInput& DeviceI, const InputEventTy if( m_In.IsTransitioning() || m_Out.IsTransitioning() ) return; - if( type != IET_FIRST_PRESS ) + if( (type != IET_FIRST_PRESS) && (type != IET_SLOW_REPEAT) ) return; - bool bHoldingShift = INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT)) || INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_RSHIFT)); @@ -263,7 +262,8 @@ void ScreenNetSelectMusic::Input( const DeviceInput& DeviceI, const InputEventTy case KEY_KP_ENTER: if (!bHoldingCtrl) { - NSMAN->SendChat( m_sTextInput ); + if ( m_sTextInput != "" ) + NSMAN->SendChat( m_sTextInput ); m_sTextInput=""; UpdateTextInput(); return;