Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
koterba committed Apr 21, 2022
1 parent d42e9f8 commit ec85649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion burtle/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
def events():
global window
events = []
possible_keys = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' ','left','right','up','down']
window.listen()
for new_letter in 'abcdefghijklmnopqrstuvwxyz ':
for new_letter in possible_keys:
if keyboard.is_pressed(new_letter): # check for any keys
if new_letter == " ":
new_letter = "space" # change key name to space, so its easier for end user
Expand Down

0 comments on commit ec85649

Please sign in to comment.