Make mapping of mouse/touch coordinates compatible with CSS transforms.
Various changes to make the touch thumbsticks example work better on mobile.