////////////////////////////////////////////////////////////
/// <summary>
/// Get the current position of the mouse
/// </summary>
/// This function returns the current position of the mouse
/// cursor relative to a window.
/// <param name="relativeTo">Reference window</param>
/// <returns>Current position of the mouse</returns>
////////////////////////////////////////////////////////////
public static Vector2i GetPosition(Window relativeTo)
{
if (relativeTo != null)
return relativeTo.InternalGetMousePosition();
else
return sfMouse_getPosition(IntPtr.Zero);
}