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)); }
static void SubThread(object obj) { EventCallBack.Rolling(); RenderForm.DispatchAction(); Resize(); UIPage.Refresh(UserAction.TimeSlice); UINotify.Refresh(UserAction.TimeSlice); UIAnimation.Manage.Update(); }