Layer.cursorX

Function/Meaning
Mouse cursor x position
Type
Layer Class Properties
Explanation

Represents the x-coordinate value of the layer's mouse cursor in pixels in display coordinates. You can also set the value. When setting a value, simply setting the cursorX property does not move the mouse cursor.
The mouse cursor will then move when you set the cursorY property.

Reference
Layer.setCursorPos