aboutsummaryrefslogtreecommitdiffstats
path: root/test/pugl_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 16:53:36 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:32:16 +0200
commit496f17c3804c79d304aa6095b92768593d1cc700 (patch)
treec8a9f9b831ae838f2005dd459abf3a65162fac4f /test/pugl_test.c
parentdacaaa5f328ac2598123aa1f0744ddd68c87e9cc (diff)
downloadpugl-496f17c3804c79d304aa6095b92768593d1cc700.tar.gz
pugl-496f17c3804c79d304aa6095b92768593d1cc700.tar.bz2
pugl-496f17c3804c79d304aa6095b92768593d1cc700.zip
Add puglPollEvents()
This allows waiting for events for any view in the world. It also improves on puglWaitForEvent() by the addition of a time parameter that allows indefinite blocking, non-blocking polling, and blocking polling with a timeout.
Diffstat (limited to 'test/pugl_test.c')
-rw-r--r--test/pugl_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pugl_test.c b/test/pugl_test.c
index c4df272..66fd97d 100644
--- a/test/pugl_test.c
+++ b/test/pugl_test.c
@@ -212,7 +212,7 @@ main(int argc, char** argv)
if (app.continuous) {
puglPostRedisplay(view);
} else {
- puglWaitForEvent(view);
+ puglPollEvents(app.world, -1);
}
puglProcessEvents(view);