MouseX("layer_name", camera_number)
and
MouseY("layer_name", camera_number)
The base layer can be referenced with the name "" (empty string). Finally, if you want the position in the base layer and the first camera (default layer and camera), you can use:
MouseX() and MouseY()
By the way, the basic turret tutorial explains it
