Problem with Joypad

Good evening Community,
thank you for creating PLAYCANVAS, a very useful tool.

I’m a beginner and I have a problem, I can’t get the joypad to work.

The current project works with the keyboard (for player movement) and mouse (for camera control). I would like to add the joypad only in the mobile version, while keeping keyboard and mouse for the desktop version.

I followed the guide ( Touchscreen Joypad Controls | PlayCanvas Developer Site ) to add the touchscreen joypad, but I can’t connect it to my two scripts, playerMovement.js and cameraMovement.js, to control the player and camera using the mobile joypad.

Here is the link to my project: PlayCanvas 3D HTML5 Game Engine

I would appreciate it if you could make a “fork” or duplicate the project to modify it, so I can learn better.

Thank you very much for the support! ^^