Click or drag to resize

GCControllerDualShock4ExtensionGetTouchPositionByTouchId Method

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

Namespace: Rewired.Platforms.Apple.GameController
Assemblies:  Rewired_AppleGameController (in Rewired_AppleGameController.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
  Rewired_OSX (in Rewired_OSX.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public bool GetTouchPositionByTouchId(
	int touchId,
	out Vector2 position
)

Parameters

touchId  Int32
The id of the touch for which to return position.
position  Vector2
X/Y position of the touch [0 - 1]

Return Value

Boolean
True if the touch at touchId is currently touching. False if there is no touch at touchId.
See Also