Name: xboxpad
Owner: vr-components
Description: It helps you integrate an xBox 360 controller in your web application
Created: 2015-03-29 02:18:22.0
Updated: 2017-09-29 21:37:14.0
Pushed: 2015-04-10 18:25:49.0
Homepage: null
Size: 156
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This library to help you integrate an xBox 360 controller in your web application
You need an xBox 360 controller configured in your computer
Copy the library into your application
Pad.on('pressed', function(buttons) {
(buttons.length === 1 && buttons[0] === 'A') {
... do something ...
npm install
bower install
to install frontend dependenciesgulp
to build the libraryI use OSX (Yosemite 10.10.2 at the moment of writting these instructions).
You need an xBox 360 controller
If you have a Wireless one you also need an USB receiver
Install the driver
https://github.com/luser/gamepadmapping.js
More detailed instructions on making an xBox controller work on OSX:
http://www.reddit.com/r/osx/comments/2ipi0u/how_to_use_the_xbox_360_controller_driver_on_os_x/
http://www.maclife.com/article/howtos/how_use_xbox_360_wireless_controller_your_mac