To add on what dbInteractive said, in my Tutorial on custom cursors. I briefly talk about how the Player Controller interacts with the mouse.