mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +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())
|
||||
}
|
||||
|
||||
func (u *UserInterface) DoEvents() error {
|
||||
func (u *UserInterface) Update() error {
|
||||
var ferr error
|
||||
u.runOnMainThread(func() {
|
||||
if err := u.pollEvents(); err != nil {
|
||||
|
@ -83,7 +83,7 @@ func vsync() {
|
||||
<-ch
|
||||
}
|
||||
|
||||
func (u *UserInterface) DoEvents() error {
|
||||
func (u *UserInterface) Update() error {
|
||||
currentInput.UpdateGamepads()
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
if err := ui.CurrentUI().DoEvents(); err != nil {
|
||||
if err := ui.CurrentUI().Update(); err != nil {
|
||||
return err
|
||||
}
|
||||
if ui.CurrentUI().IsClosed() {
|
||||
|
Loading…
Reference in New Issue
Block a user