- Implementat keyPressed

This commit is contained in:
2023-06-04 14:26:34 +02:00
parent 312bed64da
commit f92d483cde
4 changed files with 13 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ int sx=1, sy=0;
bool game::loop()
{
if ( input::keyDown(SDL_SCANCODE_Q) )
if ( input::keyPressed(SDL_SCANCODE_Q) )
{
ii++;if(ii>3)ii=0;
restart();