private void ShowKeyboardButton(Button btn) { //Log.i(LOG_TAG, "ShowKeyboardButton"); //Re-init all parameters mIMEWrapper.InitParameter(); //if (target != null) { //Log.i(LOG_TAG, "ShowKeyboardButton text = " + btn.GetComponentInChildren<Text>().text); string txt = btn.GetComponentInChildren <Text>().text; string[] strings = txt.Split(new char[2] { '(', ')' }); int data = 0; if (strings.Length == 3) { data = int.Parse(strings[1]); } mIMEWrapper.SetText(data.ToString()); } if (mCurSelInput < 3) { mIMEWrapper.SetTitle("Input euler..."); } else { mIMEWrapper.SetTitle("Input position..."); } mIMEWrapper.SetLocale(WaveVR_IMEManagerWrapper.Locale.en_US); mIMEWrapper.SetAction(WaveVR_IMEManagerWrapper.Action.Send); mIMEWrapper.Show(); }
public void ShowKeyboardEng() { Log.i(LOG_TAG, "showKeyboardEng"); myInputField = GetInputField("NameInputField"); if (myInputField != null) { myInputField.shouldHideMobileInput = false; Log.i(LOG_TAG, "NameInputField.text = " + myInputField.textComponent.text); mIMEWrapper.SetText(myInputField.textComponent.text); } mIMEWrapper.SetTitle("Enter Username..."); mIMEWrapper.SetLocale(WaveVR_IMEManagerWrapper.Locale.zh_CN); mIMEWrapper.SetAction(WaveVR_IMEManagerWrapper.Action.Enter); mIMEWrapper.Show(); }