Class Fz2D.Input.Touch
| Defined in: | src/input/touch.coffee |
Overview
Public: Touch
Instance Method Summary
- ::constructor(element, x = 0, y = 0) Constructor
- ::update() Updates touch state on every frame.
Constructor Details
::constructor(element, x = 0, y = 0) Source
Public: Constructor
element - HTML DOM element
x - initial touch position on the X axis (default: 0)
y - initial touch position on the Y axis (default: 0)
Instance Method Details
::update() Source
Public: Updates touch state on every frame.