

Okay so I am trying to get the coordinates on a grid of which square a mouse was clicked on (why i casted into int) and this is giving me like the current position of the mouse,however, I want the position after a click and for nothing to happen while it hovers. C++ program to find out the center coordinates and the height of a building How to change the visibility of the Cursor of Console in C C program to find in which quadrant the coordinates lie. in an eyetracking paradigm I wish to set the mouse cursor to a specific screen location on each trial in order to prevent that subjects have to search for. The MouseEvent getX () and getY () methods will return the coordinates relative to the source of the event.
