Events associated with mouse movement,such as the mouseMove event, use the MouseEventclass to represent the event object. When mouse locking is disabled,use the MouseEvent.localX and MouseEvent.localY propertiesto determine the location of the mouse.When mouse locking is enabled,use the MouseEvent.movementX and MouseEvent.movementY propertiesto determine the location of the mouse. The movementX and movementY propertiescontain changes in the position of the mouse since the last event,instead of absolute coordinates of the mouse location.