LIBRARIES

At the very least you are going to need a program running on the PC to tell the Arduino where the mouse is. Have you got such a program.

Some Arduinos, notably the Leonardo, can control the mouse, but cannot determine where it is currently positioned.