summaryrefslogtreecommitdiffhomepage
path: root/examples/src/core/core_input_keys.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-08-14 19:32:27 +0200
committerRay <[email protected]>2018-08-14 19:32:27 +0200
commitab07e099dbf782c4c69cd0f0e06d1f37a3a887bf (patch)
tree3b251a6667d3ea3696b0435f9b5306be31d32ba4 /examples/src/core/core_input_keys.c
parenta8e30fb58fcc414aae8533f6f118c4f005b02833 (diff)
downloadraylib.com-ab07e099dbf782c4c69cd0f0e06d1f37a3a887bf.tar.gz
raylib.com-ab07e099dbf782c4c69cd0f0e06d1f37a3a887bf.zip
Updated examples
Diffstat (limited to 'examples/src/core/core_input_keys.c')
-rw-r--r--examples/src/core/core_input_keys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/src/core/core_input_keys.c b/examples/src/core/core_input_keys.c
index b230524..69384fd 100644
--- a/examples/src/core/core_input_keys.c
+++ b/examples/src/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