0.1.3 • Published 9 years ago

interface.server.gamepad v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

#interface.server.gamepad

This module is designed to work with interface.server, but can also be used standalone. Currently only three joysticks are supported: Logitech Dual Action, Logitech RumblePad and the Mega World Thrustmaster.

Usage:

var ISG = require('../index.js')

ISG.onload = function() {
  var gamepad = ISG.devices( 'Logitech USB RumblePad 2 USB #1' )
  
  gamepad.on( 'leftX', function( d ){ console.log( "left x value",  d ) } )
}

All device names are suffixed with a number in case there is more than one of the same device on a system.

Devices are organized by manufactured / product in the devices directory. You can look at those files to see the names of signals to subscribe to.

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.1

10 years ago

0.0.0

10 years ago