Creating a Custom Player Controller for Mouse Control
By default, the PlayerController class does not have mouse interfacing enabled. This is because not all games require a mouse cursor as their main form of interaction. Through the following steps, we will walk you through the creation of a custom PlayerController Blueprint Class that will allow you access to the mouse cursor.
Be aware that these are just the basic steps for enabling mouse control. In most cases, there will be others steps involved to customize your PlayerController and GameMode for the specific type of game that you are creating.
In the Content Browser (for sake of ease, use your Developer folder), right-click and choose Blueprint Class from the context menu.
In the Pick Parent Class window, use the Search bar to find the PlayerController class and click on it.
Name your new class Mouse_PlayerController.
Right-click on your new Blueprint in the Content Browser and choose Edit.... This will open up the Class Defaults window.
In the Mouse Interface category, check all the options that apply to your project. This will likely include Show Mouse Cursor, Enable Click Events, and possibly Enable Mouse Over Events.
Save your new Blueprint.