Class Fz2D.Input.Mouse

Defined in: src/input/mouse.coffee

Overview

Public: Mouse

Instance Method Summary

Constructor Details

::constructor(element, x = 0, y = 0) Source

Public: Constructor element - HTML DOM element x - initial mouse position on the X axis (default: 0) y - initial mouse position on the Y axis (default: 0)

Parameters:

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

Instance Method Details

::hide() Source

Public: Hides the mouse cursor.

::show(style = 'initial') Source

Public: Shows the mouse cursor. style - cursor style (default: initial)

Parameters:

  • stylecursor style (default: initial)

::update() Source

Public: Updates mouse state on every frame.