From f49bd488036274fd1f5c8d0b4af0c788ce723e4b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 18 Mar 2007 10:26:45 +0000 Subject: [PATCH] message --- stepmania/src/OptionsList.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stepmania/src/OptionsList.cpp b/stepmania/src/OptionsList.cpp index 518c6c1be7..cf19ec9814 100644 --- a/stepmania/src/OptionsList.cpp +++ b/stepmania/src/OptionsList.cpp @@ -375,10 +375,15 @@ void OptionsList::Input( const InputEventPlus &input ) if( pTarget->m_Def.m_selectType == SELECT_ONE ) { int iSelection = GetOneSelection(sDest); - iSelection += (input.MenuI == MENU_BUTTON_RIGHT? +1:-1); + int iDir = (input.MenuI == MENU_BUTTON_RIGHT? +1:-1); + iSelection += iDir; wrap( iSelection, bTargetSelections.size() ); - LOG->Trace( "sDest: %s, %i", sDest.c_str(), iSelection ); SelectItem( sDest, iSelection ); + + Message msg("OptionsListQuickChange"); + msg.SetParam( "Player", pn ); + msg.SetParam( "Direction", iDir ); + MESSAGEMAN->Broadcast( msg ); } } return;