// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Experimental.UI { /// /// This class switches back and forth between two symbol boards that otherwise do not fit on the keyboard entirely /// public class SymbolKeyboard : MonoBehaviour { [Experimental] [SerializeField] private UnityEngine.UI.Button m_PageBck = null; [SerializeField] private UnityEngine.UI.Button m_PageFwd = null; private void Update() { // Visual reflection of state. m_PageBck.interactable = NonNativeKeyboard.Instance.IsShifted; m_PageFwd.interactable = !NonNativeKeyboard.Instance.IsShifted; } } }