package.example.example.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mouse-change Show documentation
Show all versions of mouse-change Show documentation
Mouse state change listener
The newest version!
require('../mouse-listen')(function(buttons, x, y, mods) {
document.body.innerHTML =
'Buttons: 0b' + buttons.toString(2) +
', x:' + x +
', y:' + y +
', mods:' + JSON.stringify(mods) + '
'
})