Published
- 1 min read
pygame keys pressed
The solution for this is noted below
pygame keys pressed
Solution
keys = pygame.key.get_pressed()
if keys[K_LEFT]:
print("left")
Try other methods by searching on the site. That is if this doesn’t work