Skip to content

Commit 3e07cbf

Browse files
committed
Fix missing log items in eventget example
1 parent 31d5d85 commit 3e07cbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/eventget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def main() -> None: # noqa: C901, PLR0912
5454
joysticks.remove(joystick)
5555
case tcod.event.MouseMotion():
5656
motion_desc = str(event)
57-
case _: # Log all events other than MouseMotion.
58-
event_log.append(repr(event))
57+
if not isinstance(event, tcod.event.MouseMotion): # Log all events other than MouseMotion
58+
event_log.append(repr(event))
5959

6060

6161
if __name__ == "__main__":

0 commit comments

Comments
 (0)