Skip to content

Commit 22ac57a

Browse files
committed
Print all events.
This is vital to help new users understand how events work.
1 parent 9896049 commit 22ac57a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def main() -> None:
5151
state.on_draw(console) # Draw the current state
5252
context.present(console) # Render the console to the window and show it
5353
for event in tcod.event.wait(): # Event loop, blocks until pending events exist
54+
print(event)
5455
state.on_event(event) # Dispatch events to the state
5556

5657

0 commit comments

Comments
 (0)