summaryrefslogtreecommitdiffhomepage
path: root/examples/physics/physics_friction.c
diff options
context:
space:
mode:
authorRabia Alhaffar <[email protected]>2021-03-22 17:44:12 +0200
committerGitHub <[email protected]>2021-03-22 16:44:12 +0100
commit8e1e1ef9701433de9dddc3e4cbe5028d96b757b4 (patch)
treeb86c18f11c98692f988a76bacbc609687a0e1c06 /examples/physics/physics_friction.c
parentb573ff3e7a998592d705f5e81b7217ccae44f2a5 (diff)
downloadraylib-8e1e1ef9701433de9dddc3e4cbe5028d96b757b4.tar.gz
raylib-8e1e1ef9701433de9dddc3e4cbe5028d96b757b4.zip
Changed IsKeyPressed('R') to IsKeyPressed(KEY_R) for Physics examples! (#1666)
Diffstat (limited to 'examples/physics/physics_friction.c')
-rw-r--r--examples/physics/physics_friction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/physics/physics_friction.c b/examples/physics/physics_friction.c
index b9195039..d1ade979 100644
--- a/examples/physics/physics_friction.c
+++ b/examples/physics/physics_friction.c
@@ -70,7 +70,7 @@ int main(void)
//----------------------------------------------------------------------------------
UpdatePhysics(); // Update physics system
- if (IsKeyPressed('R')) // Reset physics system
+ if (IsKeyPressed(KEY_R)) // Reset physics system
{
// Reset dynamic physics bodies position, velocity and rotation
bodyA->position = (Vector2){ 35, screenHeight*0.6f };