Merge pull request #106 from mewpull/gl2.1
pixel/pixelgl: export UpdateInput
This commit is contained in:
commit
910ce72821
|
@ -372,7 +372,9 @@ func (w *Window) initInput() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *Window) updateInput() {
|
// UpdateInput polls window events. Call this function to poll window events
|
||||||
|
// without swapping buffers. Note that the Update method invokes UpdateInput.
|
||||||
|
func (w *Window) UpdateInput() {
|
||||||
mainthread.Call(func() {
|
mainthread.Call(func() {
|
||||||
glfw.PollEvents()
|
glfw.PollEvents()
|
||||||
})
|
})
|
||||||
|
|
|
@ -190,7 +190,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.
|
||||||
|
|
Loading…
Reference in New Issue