Procházet zdrojové kódy

Fixed problem related to `IsKeyPressed` function! (#1589)

Rabia Alhaffar před 4 roky
rodič
revize
e300d268f9
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      examples/shapes/shapes_logo_raylib_anim.c

+ 2 - 2
examples/shapes/shapes_logo_raylib_anim.c

@@ -90,7 +90,7 @@ int main(void)
         }
         else if (state == 4)            // State 4: Reset and Replay
         {
-            if (IsKeyPressed('R'))
+            if (IsKeyPressed(KEY_R))
             {
                 framesCounter = 0;
                 lettersCount = 0;
@@ -157,4 +157,4 @@ int main(void)
     //--------------------------------------------------------------------------------------
 
     return 0;
-}
+}