diff --git a/ui/allg5ui/renderer.go b/ui/allg5ui/renderer.go index 292b72e..5aff846 100644 --- a/ui/allg5ui/renderer.go +++ b/ui/allg5ui/renderer.go @@ -67,7 +67,7 @@ func (r *Renderer) PushEvents(t ui.EventTarget, wait bool) { case *allg5.MouseMoveEvent: t.Handle(&ui.MouseMoveEvent{MouseEvent: mouseEvent(e.MouseEvent), MouseWheel: float32(e.DeltaZ)}) case *allg5.UserEvent: - // used to unblock the wait for events. + t.Handle(&ui.RefreshEvent{EventBase: eventBase(e)}) } ev = r.eq.Get() } diff --git a/ui/event.go b/ui/event.go index e31c2fe..f633d91 100644 --- a/ui/event.go +++ b/ui/event.go @@ -54,3 +54,7 @@ type MouseMoveEvent struct { MouseEvent MouseWheel float32 } + +type RefreshEvent struct { + EventBase +}