def mouse_location():
	if _check_display():
		current_location = libcvautomation.xte_mouseLocation( _get_display() )
		_log_output( 'Mouse location: x=' + str(current_location.x) + ' y=' + str(current_location.y) )
		return current_location.x, current_location.y
	else:
		#Display not open
		raise LibcvDisplayNotOpen( _get_name() )
def mouse_location():
    if _check_display():
        current_location = libcvautomation.xte_mouseLocation(_get_display())
        _log_output('Mouse location: x=' + str(current_location.x) + ' y=' +
                    str(current_location.y))
        return current_location.x, current_location.y
    else:
        #Display not open
        raise LibcvDisplayNotOpen(_get_name())
def mouse_hover_xy( x_coord, y_coord ):
	if _check_display():
		_log_output( 'Mouse button hover xy: x=' + str(x_coord) + ' y=' + str(y_coord) + ' mouse_button=' + mouse_button )
		current_location = libcvautomation.xte_mouseLocation(_get_display() )
		x_increment = x_coord - current_location.x
		y_increment = y_coord - current_location.y

		libcvautomation.xte_hoverMouseRXY(_get_display(), x_increment, y_increment )

		return True
	else:
		#Display not open
		raise LibcvDisplayNotOpen( _get_name() )
def mouse_hover_xy(x_coord, y_coord):
    if _check_display():
        _log_output('Mouse button hover xy: x=' + str(x_coord) + ' y=' +
                    str(y_coord) + ' mouse_button=' + mouse_button)
        current_location = libcvautomation.xte_mouseLocation(_get_display())
        x_increment = x_coord - current_location.x
        y_increment = y_coord - current_location.y

        libcvautomation.xte_hoverMouseRXY(_get_display(), x_increment,
                                          y_increment)

        return True
    else:
        #Display not open
        raise LibcvDisplayNotOpen(_get_name())