public void EnterWaitState() { //these flags are here so that they get reset before anything else happens in the SM //these were previously in the action method but that causes issues because the update state is run again before all of the flags are reset. zoomer.ResetZoomLens(); magnifier.Stop(); SystemFlags.fixationRunning = false; SystemFlags.actionButtonSelected = false; SystemFlags.fixationRunning = false; SystemFlags.hasGaze = false; SystemFlags.timeOut = false; fixationWorker.IsZoomerFixation(false); currentState = SystemState.Wait; SystemFlags.currentState = SystemState.Wait; zoomer.Refresh(); fixationWorker = new FixationDetection(); }
/* * The work that needs to be done when entering the wait state */ public void EnterWaitState() { SystemFlags.fixationRunning = false; SystemFlags.actionButtonSelected = false; SystemFlags.fixationRunning = false; SystemFlags.hasGaze = false; SystemFlags.timeOut = false; fixationWorker.IsZoomerFixation(false); SetState(SystemState.Wait); }