void SoundManager::Previous( Event * ) { int index; currentFacet = 0; if ( current ) { // // find current sound in container of sounds // index = soundList.IndexOfObject( current ); if ( index > 1 ) { index--; } else { index = soundList.NumObjects(); } CurrentLostFocus(); } else { index = 1; } if ( index <= soundList.NumObjects() ) { current = soundList.ObjectAt( index ); CurrentGainsFocus(); UpdateUI(); } }
void SoundManager::Hide ( Event *ev ) { CurrentLostFocus(); CancelEventsOfType( EV_SoundManager_ShowingSounds ); UpdateUI(); }