diff options
author | David Robillard <d@drobilla.net> | 2020-03-14 15:03:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-15 10:24:47 +0100 |
commit | f5cfed13f8d63c51fc40d4844191811ea8266db8 (patch) | |
tree | a469dda742c7f8b6d54fd17d0f5202d33a922621 | |
parent | ec6c9ec368a8cc41fd578bc19a78e34624bfc1d7 (diff) | |
download | pugl-f5cfed13f8d63c51fc40d4844191811ea8266db8.tar.gz pugl-f5cfed13f8d63c51fc40d4844191811ea8266db8.tar.bz2 pugl-f5cfed13f8d63c51fc40d4844191811ea8266db8.zip |
Print events in Cairo demo
-rw-r--r-- | examples/pugl_cairo_demo.c | 2 |
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) { |