We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31d5d85 commit 3e07cbfCopy full SHA for 3e07cbf
1 file changed
examples/eventget.py
@@ -54,8 +54,8 @@ def main() -> None: # noqa: C901, PLR0912
54
joysticks.remove(joystick)
55
case tcod.event.MouseMotion():
56
motion_desc = str(event)
57
- case _: # Log all events other than MouseMotion.
58
- event_log.append(repr(event))
+ if not isinstance(event, tcod.event.MouseMotion): # Log all events other than MouseMotion
+ event_log.append(repr(event))
59
60
61
if __name__ == "__main__":
0 commit comments