How can I detect when I am dragging and dropping an object??
I have a method in the update loop that checks if the mouse cursor is in the top left corner, if it is I call showGUI() and show my menu and if its not I call hideGUI() and hide my menu. I also have a method in hideGui() that checks if any window is open and if so it returns and gets out of the hideGui() method. This works great except that if I click on title to drag the window now the window isn’t considered open (won’t get detected by >>> return dialogLayer.findElementByName(string) != null; <<< and the hideGui() will happen and the gui will disappear.
So what I need is a way to detect if the user is dragging the window so I won’t allow the hui to disappear when window is being dragged.
anyone knows how I can detect that?