public void OnFlickStart(VRFI_Operater operater) { if (BeforeConvertString.Length == 0) { return; } textHandler.OverwiteKanjiConvert(BeforeConvertString.Length, RawText); BeforeConvertString = ""; kanjiConvert.KanjiConvert(); }
public void OnFlickEnd(VRFI_Operater operater) { Vector3 flickEndPos = operater.GetControllerPosition(); Vector2 PadTouchPoint = operater.GetPadTouchPoint(); FlickEndPositiontoLocal = transform.InverseTransformPoint(flickEndPos); //フリック方向を取得 int direction = FlickDirection(); //パッドのタッチ位置でJapaneseTypeを取得 VRFI_InputBlock.KeyTemplates type = SelectJapaneseType(PadTouchPoint); //選択しているキーとパッドのタッチ位置で入力文字を変更 int block = (int)inputBlock; string Input = ""; switch (type) { case VRFI_InputBlock.KeyTemplates.Japanese_Normal: Input = VRFI_InputBlock.DefaultCharacterBlock[block, direction]; break; case VRFI_InputBlock.KeyTemplates.Japanese_dakuten: Input = VRFI_InputBlock.DakutenCharacterBlock[block, direction]; break; case VRFI_InputBlock.KeyTemplates.Japanese_handakuten: Input = VRFI_InputBlock.HandakutenCharacterBlock[block, direction]; break; case VRFI_InputBlock.KeyTemplates.Japanese_komozi: Input = VRFI_InputBlock.KomoziCharacterBlock[block, direction]; break; } FlickStartPositiontoLocal = Vector3.zero; FlickEndPositiontoLocal = Vector3.zero; textHandler.AddTemporaryText(Input); kanjiConvert.KanjiConvert(); }
public void OnFlickEnd(VRFI_Operater operater) { }
public void OnFlickStart(VRFI_Operater operater) { Vector3 flickStartPos = operater.GetControllerPosition(); FlickStartPositiontoLocal = transform.InverseTransformPoint(flickStartPos); }