Game Development Reference
In-Depth Information
rotationAngle
Depending on the way a touch is detected, the ellipse that represents the touch
might be rotated. The rotationAngle attribute associated with each touch object
is the clockwise angle in degrees that rotates the ellipse to most closely match the
touch.
force
Some touch devices are capable of detecting the amount of pressure applied to the
surface of the input surface by the user. When this is the case, the force attribute
represents that pressure with a variable between 0.0 and 1.0, where 1.0 represents
the maximum pressure that the device can handle. When a device doesn't support
force sensitivity, this attribute will always return 1.0.
Since the value of the force attribute is always between zero and one, we can
conveniently use this to render elements with a varying degree of opacity (with
Search WWH ::




Custom Search