Struct TouchscreenGestureInputControllerState
State for input device representing touchscreen gestures.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AR.Inputs
Syntax
public struct TouchscreenGestureInputControllerState : IInputStateTypeInfo
Fields
dragCurrentPosition
The current screen position of the drag gesture.
Declaration
public Vector2 dragCurrentPosition
Field Value
Type | Description |
---|---|
Vector2 |
dragDelta
The delta screen position of the drag gesture.
Declaration
public Vector2 dragDelta
Field Value
Type | Description |
---|---|
Vector2 |
dragStartPosition
The screen position where the drag gesture started.
Declaration
public Vector2 dragStartPosition
Field Value
Type | Description |
---|---|
Vector2 |
fingerCount
The number of fingers on the touchscreen.
Declaration
public int fingerCount
Field Value
Type | Description |
---|---|
Int32 |
pinchGap
The gap between then position of the first and second fingers for the pinch gesture.
Declaration
public float pinchGap
Field Value
Type | Description |
---|---|
Single |
pinchGapDelta
The gap delta between then position of the first and second fingers for the pinch gesture.
Declaration
public float pinchGapDelta
Field Value
Type | Description |
---|---|
Single |
pinchStartPosition1
The screen position of the first finger where the pinch gesture started.
Declaration
public Vector2 pinchStartPosition1
Field Value
Type | Description |
---|---|
Vector2 |
pinchStartPosition2
The screen position of the second finger where the pinch gesture started.
Declaration
public Vector2 pinchStartPosition2
Field Value
Type | Description |
---|---|
Vector2 |
tapStartPosition
The screen position where the tap gesture started.
Declaration
public Vector2 tapStartPosition
Field Value
Type | Description |
---|---|
Vector2 |
twistDeltaRotation
The delta rotation of the twist gesture.
Declaration
public float twistDeltaRotation
Field Value
Type | Description |
---|---|
Single |
twistStartPosition1
The screen position of the first finger where the twist gesture started.
Declaration
public Vector2 twistStartPosition1
Field Value
Type | Description |
---|---|
Vector2 |
twistStartPosition2
The screen position of the second finger where the twist gesture started.
Declaration
public Vector2 twistStartPosition2
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragCurrentPosition
The current screen position of the two-finger drag gesture.
Declaration
public Vector2 twoFingerDragCurrentPosition
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragDelta
The delta screen position of the two-finger drag gesture.
Declaration
public Vector2 twoFingerDragDelta
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragStartPosition1
The screen position of the first finger where the two-finger drag gesture started.
Declaration
public Vector2 twoFingerDragStartPosition1
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragStartPosition2
The screen position of the second finger where the two-finger drag gesture started.
Declaration
public Vector2 twoFingerDragStartPosition2
Field Value
Type | Description |
---|---|
Vector2 |
Properties
format
See IInputStateTypeInfo.format.
Declaration
public readonly FourCC format { get; }
Property Value
Type | Description |
---|---|
FourCC |
Implements
formatId
Memory format identifier for TouchscreenGestureInputControllerState.
Declaration
public static readonly FourCC formatId { get; }
Property Value
Type | Description |
---|---|
FourCC |