pixelgl: export UpdateInput
This commit is contained in:
parent
a151e31929
commit
6c69d9b06b
|
@ -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()
|
||||
})
|
||||
|
|
|
@ -192,7 +192,7 @@ func (w *Window) Update() {
|
|||
w.end()
|
||||
})
|
||||
|
||||
w.updateInput()
|
||||
w.UpdateInput()
|
||||
}
|
||||
|
||||
// SetClosed sets the closed flag of the Window.
|
||||
|
|
Loading…
Reference in New Issue