Skip to content

Instantly share code, notes, and snippets.

@sofroniewn
Created February 28, 2016 19:50
Show Gist options
  • Save sofroniewn/9356890e5629249a472b to your computer and use it in GitHub Desktop.
Save sofroniewn/9356890e5629249a472b to your computer and use it in GitHub Desktop.
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 + ']')
})
@sofroniewn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment