aboutsummaryrefslogtreecommitdiff
path: root/examples/core_input_gamepad.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-01-16 12:52:55 +0100
committerraysan5 <raysan5@gmail.com>2016-01-16 12:52:55 +0100
commit183795b8aa78fdf0b8064d72d77eaea8e7b6397b (patch)
tree1d18bec6a5510d3c225f05d09cc9649492cb4209 /examples/core_input_gamepad.c
parent91e00431d48ad90602af30ee015922243cf975cd (diff)
downloadraylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.tar.gz
raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.zip
Review literals type
Diffstat (limited to 'examples/core_input_gamepad.c')
-rw-r--r--examples/core_input_gamepad.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/core_input_gamepad.c b/examples/core_input_gamepad.c
index 64be4cd8..1de2d424 100644
--- a/examples/core_input_gamepad.c
+++ b/examples/core_input_gamepad.c
@@ -23,8 +23,8 @@ int main()
InitWindow(screenWidth, screenHeight, "raylib [core] example - gamepad input");
- Vector2 ballPosition = { screenWidth/2, screenHeight/2 };
- Vector2 gamepadMovement = { 0, 0 };
+ Vector2 ballPosition = { (float)screenWidth/2, (float)screenHeight/2 };
+ Vector2 gamepadMovement = { 0.0f, 0.0f };
SetTargetFPS(60); // Set target frames-per-second
//--------------------------------------------------------------------------------------
@@ -43,8 +43,8 @@ int main()
if (IsGamepadButtonPressed(GAMEPAD_PLAYER1, GAMEPAD_BUTTON_A))
{
- ballPosition.x = screenWidth/2;
- ballPosition.y = screenHeight/2;
+ ballPosition.x = (float)screenWidth/2;
+ ballPosition.y = (float)screenHeight/2;
}
}
//----------------------------------------------------------------------------------