示例#1
0
        public void OnFlickStart(VRFI_Operater operater)
        {
            if (BeforeConvertString.Length == 0)
            {
                return;
            }

            textHandler.OverwiteKanjiConvert(BeforeConvertString.Length, RawText);
            BeforeConvertString = "";

            kanjiConvert.KanjiConvert();
        }
示例#2
0
        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();
        }
示例#3
0
 public void OnFlickEnd(VRFI_Operater operater)
 {
 }
示例#4
0
        public void OnFlickStart(VRFI_Operater operater)
        {
            Vector3 flickStartPos = operater.GetControllerPosition();

            FlickStartPositiontoLocal = transform.InverseTransformPoint(flickStartPos);
        }