From f7b8a5a1a3189383cf861f7493782331947082e9 Mon Sep 17 00:00:00 2001
From: mewmew <rnd0x00@gmail.com>
Date: Thu, 4 Jan 2018 19:23:53 +0100
Subject: [PATCH] pixelgl: clarify UpdateInput docs

---
 pixelgl/input.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pixelgl/input.go b/pixelgl/input.go
index d8cbf1b..2eedb0d 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()
-- 
GitLab