How to use the iohook.stop function in iohook

To help you get started, we’ve selected a few iohook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github living-room / turing / src / processes / mouse.js View on Github external
room.subscribe(`mouse is active`, ({ assertions }) => {
    ;(assertions.length && ioHook.start()) || ioHook.stop()
  })
}
github typie / typie / static / packages / Mouse / index.js View on Github external
deactivate() {
        ioHook.stop();
        globalShortcut.unregister(this.pkgConfig.keys.escape);
        globalShortcut.unregister(this.pkgConfig.keys.up);
        globalShortcut.unregister(this.pkgConfig.keys.left);
        globalShortcut.unregister(this.pkgConfig.keys.down);
        globalShortcut.unregister(this.pkgConfig.keys.right);
        globalShortcut.unregister(this.pkgConfig.keys.click);
        globalShortcut.unregister(this.pkgConfig.keys.speed);
        globalShortcut.unregister(this.pkgConfig.keys.rightClick);
        this.keys = {
            up: false, left: false, down: false, right: false,
            speed: false, click: false, rightClick: false,
        };
        clearInterval(this.intervalLoop);
    }

iohook

Node.js global keyboard and mouse hook

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis