0.1.4 • Published 2 years ago

react-hid v0.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

React HID

React hooks for capturing entries from HID devices.

Install

yarn add react-hid

or

npm install --save react-hid

Usage

Retrieve all key strokes before an action key is pressed

import { useHidWithActionKey } from 'react-hid';

const handleKeys = (keys: string) => {
  console.log(keys);
};

useHidWithActionKey('Enter', handleKeys);

Retrieve all key strokes real time

import { useHid } from 'react-hid';

const handleKey = (key: string) => {
  console.log(key);
};

useHid(handleKey);
0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago