processing-js/processing-js — pull request #54 by matthiasxc (2013-03-20 22:55:37+00:00)
Title: Integrating Pointer Events (Plus Samples)

Integrating Pointer Events based on the W3C working draft for Pointer Event Spec (http://www.w3.org/TR/pointerevents/). Pointer events encompass several forms of user interaction (mouse, touch, and pen/stylus) and render them into a single event structure.

This addition to ProcessingJS adds:
- Pointer events that pass the pointer event arguments to the sketch
pointerDown
pointerMove
pointerUp
pointerCancel
pointerOver
pointerOut
- updates the ms-touch-action property so interacting with the canvas doesn't initiate scrolling
- Constants for Pointer Type
MOUSE_POINTER
TOUCH_POINTER
PEN_POINTER
- samples that implement simple pointer and multi-pointer examples
examples/basic/pointereventssimple.html
examples/basic/pointereventsmultipoint.html