3.0.7 • Published 9 years ago

input-mouse v3.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

input-mouse

experimental

Convenience API for mouse inputs using signals.

This is primarily written for interactive graphical work which use webGL coordinates instead of pixel coordinates. In other words the center of the screen is 0,0, the top left is -1,-1 and the bottom right is 1,1.

Futhermore a distinction is made between moving, dragging and hovering.

  • Movement during mouseDown is dragging.
  • Movement during mouseUp is hovering.
  • Movement during either is moving.

Clicks are interpretted manually, and movement must be no more than 5 pixels to register as a click.

Usage

NPM

License

MIT, see LICENSE.md for details.

3.0.7

9 years ago

3.0.6

9 years ago

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago