Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
boppreh authored Jan 14, 2022
1 parent 259c36a commit e3dfcf9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ keyboard.add_hotkey('space', lambda: print('space was pressed'))
def on_space():
print('space was pressed')
keyboard.add_hotkey('space', on_space)

# or this
while True:
# Wait for the next event.
event = keyboard.read_event()
if event.event_type == keyboard.KEY_DOWN and event.name == 'space':
print('space was pressed')
```

### 'Press any key to continue'
Expand Down

1 comment on commit e3dfcf9

@Waffle47
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if you wrote this after my letter... But THANK YOU SO MUCH! You literally saved me! Thanks to this, I understood what I need to do to make everything work!!! Thanks!

Please sign in to comment.