mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 15:23:17 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user