new MouseHandler()
Handles mouse movement after mouse is locked
- Source:
Methods
(static) getMovement() → {Ayce.Vector2}
Returns mouse movement, regardless if mouse is being moved. Returns movement since last frame
- Source:
Returns:
- Type
- Ayce.Vector2
(static) setNewFrameTrue()
Starts new frame for mouse handler. In most cases this should be called once a frame before getMovement is called.
- Source:
onMouseLockMove(e)
Updates x/y variables on mouse movement after mouse is locked. Only updates if mouse is being moved.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
- Source:
(inner) lockChangeAlert()
Description
- Source: