weird function in mouseDragged function
in
Programming Questions
•
2 years ago
I am trying to implement a mouseDragged function such that the user can MOVE the image in either X axis or Y axis, depending on the direction the user drags the mouse.
However, due to the nature of mouseDragged Function, it is almost impossible to check whether the user is dragging in X or Y axis...
Can anyone advice me how to drag the image in a direction (X or Y) and not in both direction...
However, due to the nature of mouseDragged Function, it is almost impossible to check whether the user is dragging in X or Y axis...
Can anyone advice me how to drag the image in a direction (X or Y) and not in both direction...
1