Mac Xbox 360 controller not working (SOLVED)

I’m new to Defold and loving it so far, thanks for all the hard work!

I’m trying to setup an xbox 360 controller on mac, and having trouble. I see these warnings in the logs:

WARNING:INPUT: No gamepad map registered for gamepad 0, not used.
WARNING:INPUT: No gamepad map registered for gamepad 1, not used.

How do I setup a gamepad map for a gamepad? I read the Device Input in Defold page (https://www.defold.com/manuals/input/) and have configured Gamepad Triggers in game.input_binding.

Thanks!

1 Like

Ah, I figured it out, Mapping Gamepad, adding not conventional gamepads to Defold helped me.

I had to make a copy of the .gamepads file and the controller identifier was:

Wireless 360 Controller

but the defaults.gamepad had Xbox 360 Controller (for windows)

Not sure if the defaults.gamepad file should be updated to include that, or if it’s just the driver/OS that I’m using (360Controller 0.16.8) (Mac 10.13.6)

Thanks

5 Likes

Great that you solved it!

Perhaps @sicher can take a look at the documentation to see if it can be updated somehow?

2 Likes

Please share the generated mappings and we’ll include them in the defaults.

6 Likes

Ok, I downloaded gdc to configure the gamepad, here’s the generated file: default.gamepads.zip (552 Bytes)

5 Likes

Thank you. I’ll add it to our defaults. I encourage others to contribute bindings as well!

2 Likes