Use gui->get_coords to get the crosshair coordinates.