void Update() { // Toggle input mode with space bar if (Input.inputString.Contains(" ")) { var next = (int)this.currentInputMode + 1; var max = Enum.GetNames(InputMode.GetType()).Length; this.InputMode = (InputMode)(next % max); } if (this.currentInputMode != this.InputMode) { this.SetInputMode(this.InputMode); } if (this.InputMode == InputMode.UnityInput) { UpdateUnityInput(); } else if (this.InputMode == InputMode.InteractionManagerPollingInput) { UpdateInteractionManagerPollingInput(); } // Show keyboard input if (!String.IsNullOrEmpty(Input.inputString)) { //this.console.UpdateProperty("Last Key(s) Pressed", string.Format("{0}", Input.inputString)); } }