vr-components/xboxpad

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

xBoxPad

This library to help you integrate an xBox 360 controller in your web application

You need an xBox 360 controller configured in your computer

Usage

Copy the library into your application

Pad.on('pressed', function(buttons) {
 (buttons.length === 1 && buttons[0] === 'A') {
... do something ...


Build it
Configure your xBox 360 controller

I use OSX (Yosemite 10.10.2 at the moment of writting these instructions).

  1. You need an xBox 360 controller

  2. If you have a Wireless one you also need an USB receiver

  3. Install the driver

References

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

Future Development

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.