summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Halase <jordan@halase.me>2019-10-29 13:10:22 -0500
committerJordan Halase <jordan@halase.me>2019-10-29 13:10:22 -0500
commit4249466fefd2bb34f13f12742c795ceb6b7a0f31 (patch)
treeecb031a3018b60fd04f32e37910a822f2500f2da
parent40e48dce46f1c0009ee57d7e00def483fda6add6 (diff)
Use printEvent()
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 3aba8ce..a0d8b39 100644
--- a/main.c
+++ b/main.c
@@ -46,6 +46,8 @@ PERFORMANCE OF THIS SOFTWARE.
#include "pugl/detail/x11.h"
#endif
+#include "test/test_utils.h" // for printEvent()
+
#include "pugl/pugl.h"
#include "pugl/pugl_stub_backend.h"
@@ -652,6 +654,7 @@ int running = 1;
PuglStatus onEvent(PuglView *view, const PuglEvent *e)
{
+ printEvent(e, "Event:\t", true);
switch (e->type) {
case PUGL_CLOSE:
running = 0;