From c0983f34007877bdf730471715163aff32ce89f1 Mon Sep 17 00:00:00 2001 From: Gordon McShane Date: Fri, 20 May 2016 11:03:44 -0700 Subject: [PATCH] fix example - fix gamepad axis query in example broken by db4585b Improved gamepad support --- examples/core_input_gamepad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/core_input_gamepad.c b/examples/core_input_gamepad.c index 1de2d424..6c356829 100644 --- a/examples/core_input_gamepad.c +++ b/examples/core_input_gamepad.c @@ -36,7 +36,8 @@ int main() //---------------------------------------------------------------------------------- if (IsGamepadAvailable(GAMEPAD_PLAYER1)) { - gamepadMovement = GetGamepadMovement(GAMEPAD_PLAYER1); + gamepadMovement.x = GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_XBOX_AXIS_LEFT_X); + gamepadMovement.y = GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_XBOX_AXIS_LEFT_Y); ballPosition.x += gamepadMovement.x; ballPosition.y -= gamepadMovement.y;