diff options
author | David Robillard <d@drobilla.net> | 2020-03-08 17:47:11 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-08 17:47:11 +0100 |
commit | 63b748a6b2f1fa9db262ba15a60939109053556e (patch) | |
tree | 5da8564839a23bbcbcbe01ae5c96e5863829e487 | |
parent | 646af656d4094d44ad0fed615429cb8585db5724 (diff) |
Print when unknown events are received in tests
-rw-r--r-- | test/test_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_utils.h b/test/test_utils.h index 2142b2d..aebe33e 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -193,6 +193,8 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) #define PRINT(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__) switch (event->type) { + case PUGL_NOTHING: + return 0; case PUGL_KEY_PRESS: return PRINT("%sKey press code %3u key U+%04X\n", prefix, @@ -272,6 +274,7 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) event->motion.x, event->motion.y); default: + fprintf(stderr, "%sUnknown event type %d\n", prefix, event->type); break; } } |