summaryrefslogtreecommitdiffhomepage
path: root/examples/core/core_input_keys.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-05-11 18:14:51 +0200
committerRay <[email protected]>2018-05-11 18:14:51 +0200
commit245704df723343fd274f77589164c6e9984aef8b (patch)
tree658186f23b7684ed46908db3f3ddf22f0fc83f5b /examples/core/core_input_keys.c
parent07901711250dff5eceac27f0a4e802833fe24b6f (diff)
downloadraylib-245704df723343fd274f77589164c6e9984aef8b.tar.gz
raylib-245704df723343fd274f77589164c6e9984aef8b.zip
Reviewed examples
Diffstat (limited to 'examples/core/core_input_keys.c')
-rw-r--r--examples/core/core_input_keys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/core/core_input_keys.c b/examples/core/core_input_keys.c
index b2305246..69384fd9 100644
--- a/examples/core/core_input_keys.c
+++ b/examples/core/core_input_keys.c
@@ -30,10 +30,10 @@ int main()
{
// Update
//----------------------------------------------------------------------------------
- if (IsKeyDown(KEY_RIGHT)) ballPosition.x += 0.8f;
- if (IsKeyDown(KEY_LEFT)) ballPosition.x -= 0.8f;
- if (IsKeyDown(KEY_UP)) ballPosition.y -= 0.8f;
- if (IsKeyDown(KEY_DOWN)) ballPosition.y += 0.8f;
+ if (IsKeyDown(KEY_RIGHT)) ballPosition.x += 2.0f;
+ if (IsKeyDown(KEY_LEFT)) ballPosition.x -= 2.0f;
+ if (IsKeyDown(KEY_UP)) ballPosition.y -= 2.0f;
+ if (IsKeyDown(KEY_DOWN)) ballPosition.y += 2.0f;
//----------------------------------------------------------------------------------
// Draw