JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q45914F
  • License ISC

This is a package to track mouse and keyboard

Package Exports

  • kikitrack
  • kikitrack/kikiMouTrack.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kikitrack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

kikitrack

Note: currently this only works in Mac not tested with windows.

kikitrack is a Node.js addon that provides functionality for input tracking in a Node.js environment.

Installation

You can install the package using npm:

npm install kikitrack

Usage

To use the package, follow these steps:

  1. Require the package in your Node.js application:
const { startTracking } = require('kikitrack');

Define the key callback function:

function onKeyPress(key) {
  console.log('Pressed key:', key);
}


Define the mouse callback function:

function onMouseMove(x, y) {
  console.log('Mouse moved:', x, y);
}


Start input tracking:

startTracking(
    {
        keyCallback: onKeyPress,
        mouseCallback: onMouseMove
    }
)


Compatibility

This package is designed for use in a Node.js environment. It may not be compatible with other JavaScript runtime environments or web browsers.

License

This package is distributed under the ISC License.