Input.get_vector() and Input.get_axis() not detected on my gamepad

Godot Version

4.3

Question

What could be the reason for a gamepad to not be detected the joystick movements by the Input.get_vector or Input.get_axis functions?

I have the InputMap actions to move mapped with the left joystick but they always give me zero.

Instead I need to get the joystick movement with Input.get_joy_axis(current_device_id, JOY_AXIS_LEFT_X) for example.

My gamepad is detected well I guess as it allows me to map the actions without any problems.

I tested it on Hardware Tester.

It’s a xbox game controller that displays in my game as:

XInput Gamepad - __XINPUT_DEVICE__

Have you tried reducing the dead zone in the Input Map, the default 0.5 is rather high, but should still work on controllers. What values do you get from raw input?

1 Like

Ok nothing, it was just that the SettingsManager I have hadn’t loaded the new actions and was loading an old settings.ini file as I load the actions from this file in case the inputs are remapped.

Big fail for me, thanks anyway!