Wondering what’s next for npm?Check out our public roadmap! »

user-input-touch

1.0.2 • Public • Published

user-input-touch

Touch input state tracking, used by the user-input package. Useful for game-loop style applications.

Usage

NPM

var touch = window.touchInput(document)

touch.touches        // Array of last touches.
touch.changedTouches // Array of last changed touches.

Tests

  • Mocha
    • Test functionality in Node.js
    • npm test
  • User Test
    • Test functionality in browser.
    • npm user-test

Install

npm i user-input-touch

DownloadsWeekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

106 kB

Total Files

7

Last publish

Collaborators

  • avatar