Class TouchscreenGestureInputController
An input device representing mobile 2D screen gestures.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AR.Inputs
Syntax
[InputControlLayout(stateType = typeof(TouchscreenGestureInputControllerState), displayName = "Touchscreen Gesture Input Controller", isGenericTypeOfDevice = true, updateBeforeRender = true)]
[Preserve]
public class TouchscreenGestureInputController : XRController, IInputUpdateCallbackReceiver
Properties
dragCurrentPosition
The current screen position of the drag gesture.
Declaration
public Vector2Control dragCurrentPosition { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
dragDelta
The delta screen position of the drag gesture.
Declaration
public Vector2Control dragDelta { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
dragStartPosition
The screen position where the drag gesture started.
Declaration
public Vector2Control dragStartPosition { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
fingerCount
The number of fingers on the touchscreen.
Declaration
public IntegerControl fingerCount { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
pinchGap
The gap between then position of the first and second fingers for the pinch gesture.
Declaration
public AxisControl pinchGap { get; }
Property Value
Type | Description |
---|---|
AxisControl |
pinchGapDelta
The gap delta between then position of the first and second fingers for the pinch gesture.
Declaration
public AxisControl pinchGapDelta { get; }
Property Value
Type | Description |
---|---|
AxisControl |
pinchStartPosition1
The screen position of the first finger where the pinch gesture started.
Declaration
public Vector2Control pinchStartPosition1 { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
pinchStartPosition2
The screen position of the second finger where the pinch gesture started.
Declaration
public Vector2Control pinchStartPosition2 { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
tapStartPosition
The screen position where the tap gesture started.
Declaration
public Vector2Control tapStartPosition { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
twistDeltaRotation
The delta rotation of the twist gesture.
Declaration
public AxisControl twistDeltaRotation { get; }
Property Value
Type | Description |
---|---|
AxisControl |
twistStartPosition1
The screen position of the first finger where the twist gesture started.
Declaration
public Vector2Control twistStartPosition1 { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
twistStartPosition2
The screen position of the second finger where the twist gesture started.
Declaration
public Vector2Control twistStartPosition2 { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
twoFingerDragCurrentPosition
The current screen position of the two-finger drag gesture.
Declaration
public Vector2Control twoFingerDragCurrentPosition { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
twoFingerDragDelta
The delta screen position of the two-finger drag gesture.
Declaration
public Vector2Control twoFingerDragDelta { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
twoFingerDragStartPosition1
The screen position of the first finger where the two-finger drag gesture started.
Declaration
public Vector2Control twoFingerDragStartPosition1 { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
twoFingerDragStartPosition2
The screen position of the second finger where the two-finger drag gesture started.
Declaration
public Vector2Control twoFingerDragStartPosition2 { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
Methods
FinishSetup()
Finishes setting up all the input values for the controller.
Declaration
protected override void FinishSetup()
Overrides
OnAdded()
Declaration
protected override void OnAdded()
Overrides
OnRemoved()
Declaration
protected override void OnRemoved()
Overrides
OnUpdate()
Declaration
public void OnUpdate()
Implements
ToString()
Converts state data to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation. |