0.1.5 • Published 10 months ago

react-hid v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months 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.5

10 months ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago