summaryrefslogtreecommitdiffhomepage
path: root/examples/ex03a_input_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ex03a_input_keys.c')
-rw-r--r--examples/ex03a_input_keys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/ex03a_input_keys.c b/examples/ex03a_input_keys.c
index 0de39425..ac8acdc2 100644
--- a/examples/ex03a_input_keys.c
+++ b/examples/ex03a_input_keys.c
@@ -30,10 +30,10 @@ int main()
{
// Update
//----------------------------------------------------------------------------------
- if (IsKeyPressed(KEY_RIGHT)) ballPosition.x += 0.8;
- if (IsKeyPressed(KEY_LEFT)) ballPosition.x -= 0.8;
- if (IsKeyPressed(KEY_UP)) ballPosition.y -= 0.8;
- if (IsKeyPressed(KEY_DOWN)) ballPosition.y += 0.8;
+ if (IsKeyDown(KEY_RIGHT)) ballPosition.x += 0.8;
+ if (IsKeyDown(KEY_LEFT)) ballPosition.x -= 0.8;
+ if (IsKeyDown(KEY_UP)) ballPosition.y -= 0.8;
+ if (IsKeyDown(KEY_DOWN)) ballPosition.y += 0.8;
//----------------------------------------------------------------------------------
// Draw