Skip to content

node-3d/iohook

Repository files navigation

Node.js IO hook

This is a part of Node3D project.

NPM Lint Test Cpplint

npm install @node-3d/iohook

Node.js addon providing a hook to track global input and shortcuts. This work is derived from wilix-team/iohook.

import { iohook } from '@node-3d/iohook';

iohook.on('keydown', (event) => {
	console.log(event.keycode);
});

iohook.shortcut([29, 65], (keys) => {
	console.log('Shortcut pressed with keys:', keys);
});

iohook.start();

Note: this addon uses N-API, and therefore is ABI-compatible across different Node.js versions. Addon binaries are precompiled and there is no compilation step during the npm install command.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors