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

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

Internal function to get the touch 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 InternalGetTouchPosition ( uint Finger ) : Vector2i
Finger uint Finger index
Результат Vector2i
        protected internal virtual Vector2i InternalGetTouchPosition(uint Finger)
        {
            return sfTouch_getPosition(Finger, CPointer);
        }

Usage Example

Пример #1
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// This function returns the current touch position
 /// relative to the given window
 /// </summary>
 /// <param name="Finger">Finger index</param>
 /// <param name="RelativeTo">Reference window</param>
 /// <returns>Current position of the finger</returns>
 ////////////////////////////////////////////////////////////
 public static Vector2i GetPosition(uint Finger, Window RelativeTo)
 {
     if (RelativeTo != null)
         return RelativeTo.InternalGetTouchPosition(Finger);
     else
         return sfTouch_getPosition(Finger, IntPtr.Zero);
 }
All Usage Examples Of SFML.Window.Window::InternalGetTouchPosition