Skip to content

Commit

Permalink
Print crossing mode of enter and leave events
Browse files Browse the repository at this point in the history
  • Loading branch information
drobilla committed Jul 5, 2020
1 parent 294c0f7 commit 7d45962
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7d45962

Please sign in to comment.