1.0.2 • Published 5 years ago

user-input-touch v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

user-input-touch

npm.io

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