mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-17 15:51:19 +00:00
Changed IsKeyPressed('R') to IsKeyPressed(KEY_R) for Physics examples! (#1666)
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user