Ejemplo n.º 1
0
        public static void DispatchEvent()
        {
            DateTime now = DateTime.Now;

            Ticks = now.Ticks;
            int s = now.Millisecond;
            int t = s - LastTime;

            if (t < 0)
            {
                t += 1000;
            }
            TimeSlice = t;
            LastTime  = s;
            EventCallBack.Rolling();
            if (inputType == InputType.OnlyMouse)
            {
                DispatchMouse();
            }
            else if (inputType == InputType.OnlyTouch)
            {
                DispatchTouch();
            }
            else
            {
                DispatchWin();
            }
            TextInputEvent.Dispatch();
            GestureEvent.Dispatch(new List <UserAction>(inputs));
        }
Ejemplo n.º 2
0
 static void SubThread(object obj)
 {
     EventCallBack.Rolling();
     RenderForm.DispatchAction();
     Resize();
     UIPage.Refresh(UserAction.TimeSlice);
     UINotify.Refresh(UserAction.TimeSlice);
     UIAnimation.Manage.Update();
 }