Click or drag to resize

GCControllerDualShock4ExtensionGetTouchPosition Method

Gets the touch position for a particular index normalized to a 0 - 1 range. (Left = 0, Bottom = 0)

Namespace:  Rewired.Platforms.Apple.GameController
Assembly:  Rewired_OSX (in Rewired_OSX.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool GetTouchPosition(
	int index,
	out Vector2 position
)

Parameters

index
Type: SystemInt32
The index of the touch for which to return position.
position
Type: Vector2
X/Y position of the touch [0 - 1]

Return Value

Type: Boolean
True if the touch at index is currently touching. False if there is no touch at index.
See Also