Lock mouse movement to axis?

i want to let the player click and from the clicked point, lock the mouse to a certain axis…
depending on his drag…

like dragging to left or right, lock axis to x only
or dragging up or down, lock axis to y only…

109436-help.png

currently stuck with this, has been 3 days, my experiments are all fail…dont know how to proceed. or even logic to use in blueprint…

Here is a way to do it :

wow, thanks alot Mhousse1247

i hope it works, gonna try it out… :slight_smile: