https://github.com/evanw/node-spacemouse
An OS X driver for the 3dconnexion SpaceMouse in JavaScript
https://github.com/evanw/node-spacemouse
Last synced: 2 months ago
JSON representation
An OS X driver for the 3dconnexion SpaceMouse in JavaScript
- Host: GitHub
- URL: https://github.com/evanw/node-spacemouse
- Owner: evanw
- Created: 2015-01-26T05:41:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T01:53:06.000Z (over 9 years ago)
- Last Synced: 2025-04-11T00:12:40.560Z (2 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```