Exemplo n.º 1
0
        public void InsertInterval(uint characterNum, GestureInterval gstInterval)
        {
            ListInterval list = null;

            if (false == _dictInterval.TryGetValue(characterNum, out list))
            {
                list = new ListInterval();
                _dictInterval.Add(characterNum, list);
            }

            list.Add(gstInterval);
        }
Exemplo n.º 2
0
        public void InsertInterval(uint characterNum, eGestureKind eKind)
        {
            ListInterval list          = null;
            float        lastInputTime = 0;

            if (true == _dictInterval.TryGetValue(characterNum, out list))
            {
                lastInputTime = list.lastInputTime;
            }

            GestureInterval gi = new GestureInterval();

            gi.kind     = eKind;
            gi.interval = Time.time - lastInputTime;

            if (null != list)
            {
                list.lastInputTime = Time.time;
            }
            DebugWide.LogBlue(gi.interval + "  : interval");                      //chamto test

            this.InsertInterval(characterNum, gi);
        }