0

I'm working on creating an HTML5 game designed for six players and I would like to include Xbox 360 controller support. Is there an existing browser plugin that enables JavaScript to access up to six Xbox controllers?

If none exists how would I go about creating one?

Daniel X Moore
  • 14,637
  • 17
  • 80
  • 92

2 Answers2

1

I don't know of an existing plugin that does that; If you want to write your own, I suggest you look at FireBreath. Basically you'll need to figure out how to interface with the controller and then you can set up a FireBreath plugin to fire events when certain events occur on the controller, i.e. buttons and movement.

FireBreath plugins work as NPAPI plugins and also as ActiveX controls, so they will work on IE as well as chrome, firefox, and safari.

taxilian
  • 14,229
  • 4
  • 34
  • 73
0

There wasn't before, but there is now: Boomstick. Boomstick provides native joystick support to JavaScript for up to 8 joysticks. It's currently in development, but is close to running on every major browser and platform.

Daniel X Moore
  • 14,637
  • 17
  • 80
  • 92