Skip to content

A Javascript that allows easy-to-use Gamepad activity so you can easily make games for controllers. All you have to do to start running it is link to the script in your HTML page.

Notifications You must be signed in to change notification settings

SuperGamer001/Gamepad.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Gamepad.js

This script allows controller compatibility to Web apps or Electron apps. Many different controllers have different button mappings, which can cause issues. This script makes it easier to "pair up" your controller to your Javascript games.

Contribution

If your controller isn't on this list, please feel free to add it to the buttonMapping list into the file. Soon, I'm going to add a test folder with two files. One will be for testing if the controller API works with your controller, and Two will tell you what your device is thinking is being pressed so you know how the mapping of your controller is set up.

Warning: Script is Weakly Built

At this very moment, the script isn't built very well. Over time, I will fix parts of my scritps so it will work properly. Don't download this script till this warning is gone. There are too many bugs to make the download worth it right now. Feel free to contribute and help me out if you'd like.

About

A Javascript that allows easy-to-use Gamepad activity so you can easily make games for controllers. All you have to do to start running it is link to the script in your HTML page.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published