Skip to content

An OS X driver for the 3dconnexion SpaceMouse in JavaScript

Notifications You must be signed in to change notification settings

lklepner/node-spacemouse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-spacemouse

This is an OS X driver for the 3dconnexion SpaceMouse in JavaScript. It also contains a daemon that proxies orientation data over WebSockets.

Library usage:

var spacemouse = require('./spacemouse').listen();
spacemouse.on('connect', function() {
  console.log('connect');
});
spacemouse.on('disconnect', function() {
  console.log('disconnect');
});
spacemouse.on('update', function(data) {
  console.log('update', data.tx, data.ty, data.tz, data.rx, data.ry, data.rz);
});

Daemon usage:

$ npm install -g spacemouse
$ spacemouse
[SpaceMouse] server listening at http://localhost:8123/
[SpaceMouse] connected to device

About

An OS X driver for the 3dconnexion SpaceMouse in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.7%
  • HTML 33.3%