joystick

Node.js module for reading joystick data under Linux

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
joystick
2600.1.29 years ago12 years agoMinified + gzip package size for joystick in KB

Readme

node-joystick
A node module for reading joystick data based on the work of Nodebits.

Example

// Set a deadzone of +/-3500 (out of +/-32k) and a sensitivty of 350 to reduce signal noise in joystick axis
var joystick = new (require('joystick'))(0, 3500, 350);
joystick.on('button', console.log);
joystick.on('axis', console.log);