Remove window requirement for all event functions

This lets an application wait for non-window events without needing to
create a window.

Fixes #1317.
This commit is contained in:
Camilla Löwy
2019-01-15 19:28:17 +01:00
parent ea7eb2ddab
commit 55b1a16f90
4 changed files with 3 additions and 22 deletions

View File

@@ -57,8 +57,7 @@ glfwWaitEvents();
It puts the thread to sleep until at least one event has been received and then
processes all received events. This saves a great deal of CPU cycles and is
useful for, for example, editing tools. There must be at least one GLFW window
for this function to sleep.
useful for, for example, editing tools.
If you want to wait for events but have UI elements or other tasks that need
periodic updates, @ref glfwWaitEventsTimeout lets you specify a timeout.