Class: MouseLock

MouseLock

The MouseLock enables locked-pointer mouse input in {@Input}. Before the pointer is locked, the canvas must be clicked.


new MouseLock()

Properties:
Name Type Description
sensitivityX

The horizontal mouse movement sensitivity

sensitivityY

The vertical mouse movement sensitivity

sensitivityScroll

The scroll wheel sensitivity

Author:
  • derschmale <http://www.derschmale.com>

Members


<static> BUTTON_LEFT

The left button name


<static> BUTTON_MIDDLE

The middle (usually scroll) button name


<static> BUTTON_RIGHT

The right button name


<static> MOVE_X

The axis name for when the mouse moves horizontally over the canvas


<static> MOVE_Y

The axis name for when the mouse moves vertically over the canvas


<static> WHEEL_X

The axis name when the horizontal scroll wheel moves


<static> WHEEL_Y

The axis name when the vertical scroll wheel moves

Methods


<static> isSupported()

Returns true if the MouseLock is supported.