mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
ui: Rename DoEvents -> Update
This commit is contained in:
parent
41fae3214b
commit
49c156d2b5
@ -196,7 +196,7 @@ func (u *UserInterface) pollEvents() error {
|
|||||||
return currentInput.update(u.window, u.windowScale())
|
return currentInput.update(u.window, u.windowScale())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserInterface) DoEvents() error {
|
func (u *UserInterface) Update() error {
|
||||||
var ferr error
|
var ferr error
|
||||||
u.runOnMainThread(func() {
|
u.runOnMainThread(func() {
|
||||||
if err := u.pollEvents(); err != nil {
|
if err := u.pollEvents(); err != nil {
|
||||||
|
@ -83,7 +83,7 @@ func vsync() {
|
|||||||
<-ch
|
<-ch
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserInterface) DoEvents() error {
|
func (u *UserInterface) Update() error {
|
||||||
currentInput.UpdateGamepads()
|
currentInput.UpdateGamepads()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
2
run.go
2
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 {
|
if err := currentRunContext.updateScreenSize(graphicsContext); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := ui.CurrentUI().DoEvents(); err != nil {
|
if err := ui.CurrentUI().Update(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if ui.CurrentUI().IsClosed() {
|
if ui.CurrentUI().IsClosed() {
|
||||||
|
Loading…
Reference in New Issue
Block a user