pixelgl: export UpdateInput

This commit is contained in:
mewmew 2018-01-01 21:04:56 +01:00
parent a151e31929
commit 6c69d9b06b
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() {
glfw.PollEvents()
})

View File

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