aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-05 13:57:45 +0200
committerDavid Robillard <d@drobilla.net>2020-07-05 16:22:16 +0200
commit7d45962ccd6fabcb198599fead141de7cd578916 (patch)
tree65db7cec74f01fb9eb2e7157d4315cceab7fa0ea /test
parent294c0f7d89b206612634978e3df166ce532a1118 (diff)
downloadpugl-7d45962ccd6fabcb198599fead141de7cd578916.tar.gz
pugl-7d45962ccd6fabcb198599fead141de7cd578916.tar.bz2
pugl-7d45962ccd6fabcb198599fead141de7cd578916.zip
Print crossing mode of enter and leave events
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_utils.h b/test/test_utils.h
index 232537e..8668e1d 100644
--- a/test/test_utils.h
+++ b/test/test_utils.h
@@ -126,15 +126,17 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose)
event->scroll.y) +
printModifiers(event->scroll.state));
case PUGL_POINTER_IN:
- return PRINT("%sMouse enter at " PFMT "\n",
+ return PRINT("%sMouse enter at " PFMT " (%s)\n",
prefix,
event->crossing.x,
- event->crossing.y);
+ event->crossing.y,
+ crossingModeString(event->crossing.mode));
case PUGL_POINTER_OUT:
- return PRINT("%sMouse leave at " PFMT "\n",
+ return PRINT("%sMouse leave at " PFMT " (%s)\n",
prefix,
event->crossing.x,
- event->crossing.y);
+ event->crossing.y,
+ crossingModeString(event->crossing.mode));
case PUGL_FOCUS_IN:
return PRINT("%sFocus in (%s)\n",
prefix,