touch-input

1.0.1 • Public • Published

State-based Touch Input Manager

NPM version Dependency Status

Gives you the status of all touches during the last frame. Each Touch entry represents a status of a finger touching the screen. Touch events are collected between frames and fire custom events once on requestAnimationFrame.

Inspired by Unity's Input.touches.

Goals

  • 60fps-first – Your code should never handle touch events between frames.
  • Only order what you can eat – One touch event per touch per frame.

Examples

Readme

Keywords

none

Package Sidebar

Install

npm i touch-input

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • digitarald