diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 6659d05a3..88b59bc83 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -196,7 +196,7 @@ func (u *UserInterface) pollEvents() error { return currentInput.update(u.window, u.windowScale()) } -func (u *UserInterface) DoEvents() error { +func (u *UserInterface) Update() error { var ferr error u.runOnMainThread(func() { if err := u.pollEvents(); err != nil { diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 668f72642..74aa871c6 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -83,7 +83,7 @@ func vsync() { <-ch } -func (u *UserInterface) DoEvents() error { +func (u *UserInterface) Update() error { currentInput.UpdateGamepads() return nil } diff --git a/run.go b/run.go index 2d6b236fa..8ecefb5c9 100644 --- a/run.go +++ b/run.go @@ -208,7 +208,7 @@ func run(f func(*Image) error, width, height, scale int, title string) error { if err := currentRunContext.updateScreenSize(graphicsContext); err != nil { return err } - if err := ui.CurrentUI().DoEvents(); err != nil { + if err := ui.CurrentUI().Update(); err != nil { return err } if ui.CurrentUI().IsClosed() {