Building a Node.js Xbox 360 Controller Module

Adding a fun way for users to interact with your applications
Instructed by: Tony Thorsen | Subject: Development, Development Tools


Description

I enjoy finding new uses for old technologies. Not being much of a gamer these days, I was tempted to get rid of my old Xbox 360 console, as it just sits and collects dust. Realizing I wouldn't get much for it, though, I decided to see if I could repurpose it, instead. I'm still not sure what to do with the console itself, but I did find that I could connect my controllers to my PC and use them as input devices in Node.js applications, which opened up a whole new world of possibilities. In this course, I am going to show you how to build a Node.js module that you can import into your own applications, which will allow you and your users to utilize Xbox 360 controllers as input devices. In order to follow along with the demos in this course, you will need a wireless Xbox 360 controller and a Microsoft USB gaming receiver.

Outcome

  1. Create a Node js controller module that can be integrated into any Node js application
  2. Map the numeric codes from the controller to more meaningful button and axis names
  3. Keep track of the status of controllers (i.e. whether they are connected or disconnected)
  4. Emit button press and axis move events from the controller module that can be handled by consuming applications
Take This Course

Course Info