Function that return mouse direction as cardinal point

Hi all, i’m searching for a function that return the** mouse movement as Cardinal Point**.
In other words i would like to have as returned value, if mouse is going from down to top, North, if mouse move from left to right, should return *East *… and so on …
i think is not easy to code, anyway i can’t with my capabilities. Can anyone help in this or give some input to solve?