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?

exactly, sorry i’m bad at explaining things