Created
February 28, 2016 19:50
-
-
Save sofroniewn/9356890e5629249a472b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Mouse = require('node-mouse') | |
| var m0 = new Mouse(0) | |
| m0.on('mousemove', function (event) { | |
| console.log('Mouse 0: [' + event.xDelta + ', ' + event.yDelta + ']') | |
| }) | |
| var m1 = new Mouse(1) | |
| m1.on('mousemove', function (event) { | |
| console.log('Mouse 1: [' + event.xDelta + ', ' + event.yDelta + ']') | |
| }) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Logging [x, y] displacements from two optical mice Logitech G303 Daedalus Apex Performance Edition Gaming Mouse (910-004380) with a USB Mini 2-Port USB 2.0 Hub Splitter.