Game Controller Button Mapping

Hello friends!

I am trying to set up gamepad controls for my game. I have done this previously in Phaser 2, but now I am working in Phaser 3 and there don’t seem to be a lot of resources on gamepad controls. I managed to code D-pad controls for left-right motion, but I need to also use the other buttons for actions…

Has anyone done this before?
I used parts of this tutorial:

any help or resources would be greatly appreciated :slight_smile: