SFML.Window.Window.InternalGetMousePosition C# (CSharp) Метод

InternalGetMousePosition() защищенный Метод

Internal function to get the mouse position relative to the window. This function is protected because it is called by another class of another module, it is not meant to be called by users.
protected InternalGetMousePosition ( ) : Vector2i
Результат Vector2i
        protected internal virtual Vector2i InternalGetMousePosition()
        {
            return sfMouse_getPosition(CPointer);
        }

Usage Example

Пример #1
0
 ////////////////////////////////////////////////////////////
 /// <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);
 }
All Usage Examples Of SFML.Window.Window::InternalGetMousePosition