Get the cursor position

Is it possible to get the coordinates of the mouse cursor outside of events.
I use this.app.mouse.wasPressed(pc.MOUSEBUTTON_LEFT
Is it possible to get the coordinates of the mouse cursor outside of events. I am using and I need to get the coordinates, just as if I were using this.app.mouse.on(pc.EVENT_MOUSEDOWN, this.onClick, this)

Not out of the box. You will have to listen to the mouse move event and cache the mouse position in some variable (global, part of a script, wherever)