Directional attacks depending on mouse movement

So I want to recreate some mechanics from For Honor, I want to create the directional attacks based on the “stance” as they are called in For Honor. If I move my mouse to the right and press for example, left click I will perform an attack from the right.