Click or drag to resize

DualShock4ExtensionGetTouchPositionAbsoluteByTouchId Method

Gets the touch position for a particular touch id in absolute units as returned by the device. (Left = 0, Bottom = 0)

Namespace:  Rewired.ControllerExtensions
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool GetTouchPositionAbsoluteByTouchId(
	int touchId,
	out Vector2 position
)

Parameters

touchId
Type: SystemInt32
The id of the touch for which to return position.
position
Type: Vector2
X/Y position of the touch in absolute units.

Return Value

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