New answers tagged keyboard
Use pygame.key.set_repeat. It looks like this: delay = 100 interval = 50 pygame.key.set_repeat(delay, interval) Putting this the while loop should work. delay is the amount of milliseconds before continuing to do the key events. interval is how many seconds between each key event. So for example, putting delay at 100 and interval at 50 will do this: ...
Top 50 recent answers are included