Changed IsKeyPressed('R') to IsKeyPressed(KEY_R) for Physics examples!

This commit is contained in:
Rabia Alhaffar 2021-03-22 13:23:36 +02:00
commit 365b827221

View file

@ -59,7 +59,7 @@ int main(void)
//----------------------------------------------------------------------------------
UpdatePhysics(); // Update physics system
if (IsKeyPressed('R')) // Reset physics input
if (IsKeyPressed(KEY_R)) // Reset physics input
{
// Reset circles physics bodies position and velocity
circleA->position = (Vector2){ screenWidth*0.25f, screenHeight/2 };