Gamepad api

can someone give me some gamepad code to put in game please?

There’s this:


Not much of a coder outside of webdesign, so I’m not really gonna know how to implement it. Many others would be willing to lead you, though!

Thanks but i’ve looked on mdn already all day yesterday i just need to know how to implement it