millorat el rebot dalt

arreglada la repetició de la tecla space
This commit is contained in:
2024-08-21 13:47:32 +02:00
parent e5fb176ef6
commit 0019625770
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ void checkEvents()
break;
}
if (event->type == SDL_KEYDOWN)
if (event->type == SDL_KEYDOWN && event->key.repeat == 0)
{
if (event->key.keysym.sym == SDLK_SPACE)
{