diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index 403d40fbac..ff8bf0f787 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -886,6 +886,19 @@ void MusicWheel::UpdateScrollbar() } } +bool MusicWheel::IsSettled() const +{ + if( m_Moving ) + return false; + if( m_WheelState != STATE_SELECTING_MUSIC && m_WheelState != STATE_LOCKED ) + return false; + if( m_fPositionOffsetFromSelection != 0 ) + return false; + + return true; +} + + void MusicWheel::Update( float fDeltaTime ) { ActorFrame::Update( fDeltaTime ); diff --git a/stepmania/src/MusicWheel.h b/stepmania/src/MusicWheel.h index f2a33a5816..42b424e8ee 100644 --- a/stepmania/src/MusicWheel.h +++ b/stepmania/src/MusicWheel.h @@ -53,6 +53,7 @@ public: bool IsRouletting() const; /* Return true if we're moving fast automatically. */ int IsMoving() const; + bool IsSettled() const; void NotesOrTrailChanged( PlayerNumber pn ); // update grade graphics and top score