You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at how the code is written, the correct binding would be "up", "down", "left", and "right", for arrow keys, because of how key_pressed() works You can read about it here
but there is also a check that makes it so that the key codes are 1 character wrong.
I would suggest changing the code from
iflen(k1) ==1andlen(k2) ==1:
breakelse:
print('Keys can only be 1 character long')
to
arrowKeys= ["up", "down", "left", "right"]
iflen(k1) ==0ork1inarrowKeysandlen(k2) ==0ork2inarrowKeys:
break;
else:
print('Keys can only be 1 character long, or arrow keys such as \'up\', \'right\', \'left\', or \'down\'')
I'll test this out on my own and submit a PR for it if it works
Is there any way to make my key 1 and 2 to arrows? I've tried putting "left arrow" or ← but none work. Thanks in advance and great project.
The text was updated successfully, but these errors were encountered: