void Update() { ThalmicHub hub = ThalmicHub.instance; computing.Compute(); if (Input.GetKeyDown("q")) { hub.ResetHub(); } if (Input.GetKeyDown("f")) { fast = !fast; } if (GuiDisplay.startButton || Input.GetKeyDown("space")) { startSession.Session(); } if (GuiDisplay.stopButton || Input.GetKeyDown("s")) { stopSession.Session(); } if (GuiDisplay.testButton || Input.GetKeyDown("t")) { StartCoroutine(testSession.Session()); } if (Input.GetKeyDown("p")) { pauseSession.Pause(); } if (Input.GetKeyDown("m")) { pauseSession.UnPause(); } /* Update timer */ if (startTimer) { time += Time.deltaTime; } /* Update time left to play a chord */ if (testingState) { timingLeft -= Time.deltaTime; } }