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

/user-input-touch/

    Package Sidebar

    Install

    npm i user-input-touch

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    106 kB

    Total Files

    7

    Last publish

    Collaborators

    • apexearth