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