How do I get the mouse input direction from the center of the screen to trigger an event from the released position of the mouse?

I see, the problem is when you switch to UI Only you will loose Input Actions, they will get stuck.