aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-14 15:03:54 +0100
committerDavid Robillard <d@drobilla.net>2020-03-15 10:24:47 +0100
commitf5cfed13f8d63c51fc40d4844191811ea8266db8 (patch)
treea469dda742c7f8b6d54fd17d0f5202d33a922621
parentec6c9ec368a8cc41fd578bc19a78e34624bfc1d7 (diff)
Print events in Cairo demo
-rw-r--r--examples/pugl_cairo_demo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c
index 2f62e11..da59e8c 100644
--- a/examples/pugl_cairo_demo.c
+++ b/examples/pugl_cairo_demo.c
@@ -179,6 +179,8 @@ onEvent(PuglView* view, const PuglEvent* event)
{
PuglTestApp* app = (PuglTestApp*)puglGetHandle(view);
+ printEvent(event, "Event: ", app->opts.verbose);
+
switch (event->type) {
case PUGL_KEY_PRESS:
if (event->key.key == 'q' || event->key.key == PUGL_KEY_ESCAPE) {