0.3.1 • Published 11 years ago

joystick-logitech-f710 v0.3.1

Weekly downloads
5
License
-
Repository
github
Last release
11 years ago

Logitech Gamepad F710

Node.js module to read joystick data from Logitech Gamepad F710.

Build Status

Installation

Using NPM

npm install node-joystick-logitech-f710

Example

var Joystick = require("joystick-logitech-f710");

Joystick.create("/dev/input/js0", function (joystick) {
  joystick.on("button:a:press", function () {
    console.log("jump");
  });

  joystick.on("button:b:press", function () {
    console.log("fire");
  });
});

TODOs

  • Scale original position values (e.g. 0..65535 to 0..100)
  • Identify stick switch after pressing "Select" button to have more specific event names
  • Trigger gamepad vibration
0.3.1

11 years ago

0.3.0

11 years ago

0.1.3

11 years ago

0.1.1

11 years ago