Skip to content

benhatsor/web-game-controller

Repository files navigation

This project attempts to make the Gamepad API and Gamepad Haptics API in JavaScript accessible and easier to use.

As of now, there's no real simple, organized documentation of the APIs mentioned above. This project attempts to gather all of the available info from W3C drafts and put it into action.

So if you wanted to have some controller action in your web game, I hope I made your day a little bit better :)


The Gamepad API Test by luser really helped me put this together.

The styling is based off of Discord's styling.