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 have multiple widgets that for the arrow direction of the interactable so i can’t focus on only one widget