Controller Input Error

Godot Version

4.6.2 Steam Version

Question

I was testing controller input and all of my Input Maps are correct but when ever I press left on my XBOX controller DPAD or Joystick the input won’t go through, is this an error with Godot 4.2. I checked my controller and its fine, I even turned off Steam Controller and that hasn’t fixed it

And it only happens in game

I’ve never had that problem with an XBox controller.

This is the first time it has happened

Have you tested if it’s a Godot specific issue? Does it appear to work in an online test?

If your controller is fine then you should post some of your code

Its a godot specific issue I’m pretty sure, it works fine everywhere else, I have tested it. The controller is even fine in editor, but when I run the game thats when the issues start

Can you paste your code you are using to test this in Godot?

I will make an video showing it

It would likely be better to paste your code rather than a video

var direction_x = Input.get_axis("Left","Right")
var direction_z = Input.get_axis("Down","Up")

I heard its an issue with Godot and Xbox Controllers rather than with my code

Could you give us the source for this so we can check ourselves? Since I also never had an issue with xbox controllers in my games.

I had searched for it on google and I had seen other forum posts saying that it was an common issue with Xbox controllers

If so then it’s a pretty serious issue and it would benefit everybody to replicate it with your source code. A code paste is the minimum we would need to help.

Could you also link any of these other forum posts so we can be more informed on what you are talking about?

I’m pretty confident there must be some issue with your project specifically, rather than the engine itself. Have you tried immediately printing direction_x? Does it produce a negative value?

var direction_x = Input.get_axis("Left","Right")
print(direction_x)
var direction_z = Input.get_axis("Down","Up")

It does when I use keyboard but when I use controller, I can’t move to the left

You can try your controller out in my game Rick O’Shea. (It has a web version.) It’s a game I made with Godot 4.6.2 this week and has controller support for the menus and the game, and my XBox controller works with it. I can go left in the menu and in the game.

If it works for you, it’s something with your game setup. If it is still broken, it’s likely specific to your hardware and should be reported as a bug.

I switched out my left input map for ui_left and I made them identical, but my left still didn’t work