I have variables for each axis of the Dpad that can equal -1, 0 or 1, and I want to use those to get an angular direction.
E.g. if X is 1 and Y is 0, get 0 as the angle, if X is -1 and Y is -1, get 135 as the angle, etc etc
What's the math for that, besides just hard-coding each of the 8 directions into the game?