pixelgl: export UpdateInput

This commit is contained in:
mewmew 2018-01-01 21:04:56 +01:00
parent 597550c16b
commit 4dc0b013f3
2 changed files with 3 additions and 2 deletions

View File

@ -372,7 +372,8 @@ func (w *Window) initInput() {
}) })
} }
func (w *Window) updateInput() { // UpdateInput polls window events.
func (w *Window) UpdateInput() {
mainthread.Call(func() { mainthread.Call(func() {
glfw.PollEvents() glfw.PollEvents()
}) })

View File

@ -192,7 +192,7 @@ func (w *Window) Update() {
w.end() w.end()
}) })
w.updateInput() w.UpdateInput()
} }
// SetClosed sets the closed flag of the Window. // SetClosed sets the closed flag of the Window.