diff --git a/pixelgl/input.go b/pixelgl/input.go
index a0aa8e97e58ecd6129a12c548d86e3102e72dfa4..22468efa5f638cefe152c8a128a36326b5ba73f1 100644
--- a/pixelgl/input.go
+++ b/pixelgl/input.go
@@ -413,11 +413,11 @@ func (w *Window) UpdateInput() {
 	w.doUpdateInput()
 }
 
-// WaitInput blocks until an event is received or a timeout. If timeout is 0
+// UpdateInputWait blocks until an event is received or a timeout. If timeout is 0
 // then it will wait indefinitely
-func (w *Window) WaitInput(timeout time.Duration) {
+func (w *Window) UpdateInputWait(timeout time.Duration) {
 	mainthread.Call(func() {
-		if timeout == 0 {
+		if timeout <= 0 {
 			glfw.WaitEvents()
 		} else {
 			glfw.WaitEventsTimeout(timeout.Seconds())