Example #1
0
        private void DeactivateKeyboard(Type_ENG kb)
        {
            #if UNITY_EDITOR
            Debug.Log(LOG_TAG + ", DeactivateKeyboard() " + kb);
            #endif

            KMInstance.ActivateKeyboard <Type_ENG> (KeyboardLanguage.English, kb, false);
        }
Example #2
0
        /// <summary>
        /// Activate the keyboard of English. Only activated keyboard will be shown.
        /// </summary>
        private void ActivateKeyboard(Type_ENG kb)
        {
            #if UNITY_EDITOR
            Debug.Log(LOG_TAG + ", ActivateKeyboard() " + kb);
            #endif

            KMInstance.ActivateKeyboard <Type_ENG> (KeyboardLanguage.English, kb, true);
            curKeyboard = kb;
        }
Example #3
0
        public English(InputFieldManager ifm, bool ispw) : base(ifm, ispw)
        {
            Locale_Keyboards = KMInstance.GetLocaleKeyboards <Type_ENG> (KeyboardLanguage.English);
            if (Locale_Keyboards != null)
            {
                foreach (Type_ENG _type in EnumUtil.GetValues <Type_ENG>())
                {
                    foreach (CKeyboard <Type_ENG> _kb in Locale_Keyboards)
                    {
                        if (_type == _kb.Type)
                        {
                            #if UNITY_EDITOR
                            Debug.Log(LOG_TAG + ", English() default keyboard is " + _type);
                            #endif
                            curKeyboard = _type;
                            goto ConstructorCompleted;
                        }
                    }
                }
            }

ConstructorCompleted:
            ;
        }