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 ae49f32 commit 2d74cafCopy full SHA for 2d74caf
tcod/event.py
@@ -66,7 +66,7 @@
66
match event:
67
case tcod.event.Quit():
68
raise SystemExit()
69
- case tcod.event.KeyDown(sym) if sym in KEY_COMMANDS:
+ case tcod.event.KeyDown(sym=sym) if sym in KEY_COMMANDS:
70
print(f"Command: {KEY_COMMANDS[sym]}")
71
case tcod.event.KeyDown(sym=sym, scancode=scancode, mod=mod, repeat=repeat):
72
print(f"KeyDown: {sym=}, {scancode=}, {mod=}, {repeat=}")
0 commit comments