Class Fz2D.Input.Touch

Defined in: src/input/touch.coffee

Overview

Public: Touch

Instance Method Summary

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)

Parameters:

  • elementHTML DOM element
  • xinitial touch position on the X axis (default: 0)
  • yinitial touch position on the Y axis (default: 0)

Instance Method Details

::update() Source

Public: Updates touch state on every frame.