diff --git a/pixelgl/input.go b/pixelgl/input.go index d8cbf1be2e32468d00611f12bc62b36021d4e37f..2eedb0dc9362330cc7f36e16367d2fb0ecb05f2d 100644 --- a/pixelgl/input.go +++ b/pixelgl/input.go @@ -372,7 +372,8 @@ func (w *Window) initInput() { }) } -// UpdateInput polls window events. +// 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() { glfw.PollEvents()