360° mouse swipes

For my first non tutorial game, I’m trying to make a football (soccer) game in 3d where you use the mouse cursor as a foot to shoot/dribble with the ball. I’ve been looking and trying a lot of code I’ve found on-line but nothing really fits. Most code I’ve found doesn’t allow for 360° control of the swipe (only up, down, left, right and if I was really lucky diagonal as well).

Would anybody have a suggestion to get a full 360° output from a mouse swipe?