C# Class SFML.Window.Touch

Give access to the real-time state of the touches
Show file Open project: SFML/SFML.Net

Public Methods

Method Description
GetPosition ( uint Finger ) : Vector2i

This function returns the current touch position

GetPosition ( uint Finger, Window RelativeTo ) : Vector2i

This function returns the current touch position relative to the given window

IsDown ( uint Finger ) : bool

Check if a touch event is currently down

Private Methods

Method Description
sfTouch_getPosition ( uint Finger, IntPtr RelativeTo ) : Vector2i
sfTouch_isDown ( uint Finger ) : bool

Method Details

GetPosition() public static method

This function returns the current touch position
public static GetPosition ( uint Finger ) : Vector2i
Finger uint Finger index
return Vector2i

GetPosition() public static method

This function returns the current touch position relative to the given window
public static GetPosition ( uint Finger, Window RelativeTo ) : Vector2i
Finger uint Finger index
RelativeTo Window Reference window
return Vector2i

IsDown() public static method

Check if a touch event is currently down
public static IsDown ( uint Finger ) : bool
Finger uint Finger index
return bool