Joystick:getGamepadAxis
Gets the direction of a virtual gamepad axis. If the Joystick isn't recognized as a gamepad or isn't connected, this function will always return 0.
direction = Joystick:getGamepadAxis( axis )
axis GamepadAxis The virtual axis to be checked.
direction number Current value of the axis.