ui: Rename DoEvents -> Update

This commit is contained in:
Hajime Hoshi 2016-05-18 01:22:01 +09:00
parent 41fae3214b
commit 49c156d2b5
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -83,7 +83,7 @@ func vsync() {
<-ch
}
func (u *UserInterface) DoEvents() error {
func (u *UserInterface) Update() error {
currentInput.UpdateGamepads()
return nil
}

2
run.go
View File

@ -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() {