processing-js/processing-js — pull request #59 by matthiasxc (2013-04-19 04:10:39+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
* simulates pointer events when touch or mouse events are triggered
* 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