Based on MouseY
When instantiating the class for the first time, the very first reading will be erroneous. It will read the cursor as Point(0, 0)
. A kind of workaround is to manually set the *cursorPosition classvar before start using PMouseX or PMouseY.