Struct TouchscreenGestureInputControllerState
State for input device representing touchscreen gestures.
Implements
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.AR.Inputs
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public struct TouchscreenGestureInputControllerState : IInputStateTypeInfo
Fields
dragCurrentPosition
The current screen position of the drag gesture.
Declaration
[InputControl(usage = "dragCurrentPosition", offset = 16)]
public Vector2 dragCurrentPosition
Field Value
Type | Description |
---|---|
Vector2 |
dragDelta
The delta screen position of the drag gesture.
Declaration
[InputControl(usage = "dragDelta", offset = 24)]
public Vector2 dragDelta
Field Value
Type | Description |
---|---|
Vector2 |
dragStartPosition
The screen position where the drag gesture started.
Declaration
[InputControl(usage = "dragStartPosition", offset = 8)]
public Vector2 dragStartPosition
Field Value
Type | Description |
---|---|
Vector2 |
fingerCount
The number of fingers on the touchscreen.
Declaration
[InputControl(usage = "fingerCount", offset = 108, layout = "Integer")]
public int fingerCount
Field Value
Type | Description |
---|---|
int |
pinchGap
The gap between then position of the first and second fingers for the pinch gesture.
Declaration
[InputControl(usage = "pinchGap", offset = 48, layout = "Axis")]
public float pinchGap
Field Value
Type | Description |
---|---|
float |
pinchGapDelta
The gap delta between then position of the first and second fingers for the pinch gesture.
Declaration
[InputControl(usage = "pinchGapDelta", offset = 52, layout = "Axis")]
public float pinchGapDelta
Field Value
Type | Description |
---|---|
float |
pinchStartPosition1
The screen position of the first finger where the pinch gesture started.
Declaration
[InputControl(usage = "pinchStartPosition1", offset = 32)]
public Vector2 pinchStartPosition1
Field Value
Type | Description |
---|---|
Vector2 |
pinchStartPosition2
The screen position of the second finger where the pinch gesture started.
Declaration
[InputControl(usage = "pinchStartPosition2", offset = 40)]
public Vector2 pinchStartPosition2
Field Value
Type | Description |
---|---|
Vector2 |
tapStartPosition
The screen position where the tap gesture started.
Declaration
[InputControl(usage = "tapStartPosition", offset = 0)]
public Vector2 tapStartPosition
Field Value
Type | Description |
---|---|
Vector2 |
twistDeltaRotation
The delta rotation of the twist gesture.
Declaration
[InputControl(usage = "twistDeltaRotation", offset = 72, layout = "Axis")]
public float twistDeltaRotation
Field Value
Type | Description |
---|---|
float |
twistStartPosition1
The screen position of the first finger where the twist gesture started.
Declaration
[InputControl(usage = "twistStartPosition1", offset = 56)]
public Vector2 twistStartPosition1
Field Value
Type | Description |
---|---|
Vector2 |
twistStartPosition2
The screen position of the second finger where the twist gesture started.
Declaration
[InputControl(usage = "twistStartPosition2", offset = 64)]
public Vector2 twistStartPosition2
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragCurrentPosition
The current screen position of the two-finger drag gesture.
Declaration
[InputControl(usage = "twoFingerDragCurrentPosition", offset = 92)]
public Vector2 twoFingerDragCurrentPosition
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragDelta
The delta screen position of the two-finger drag gesture.
Declaration
[InputControl(usage = "twoFingerDragDelta", offset = 100)]
public Vector2 twoFingerDragDelta
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragStartPosition1
The screen position of the first finger where the two-finger drag gesture started.
Declaration
[InputControl(usage = "twoFingerDragStartPosition1", offset = 76)]
public Vector2 twoFingerDragStartPosition1
Field Value
Type | Description |
---|---|
Vector2 |
twoFingerDragStartPosition2
The screen position of the second finger where the two-finger drag gesture started.
Declaration
[InputControl(usage = "twoFingerDragStartPosition2", offset = 84)]
public Vector2 twoFingerDragStartPosition2
Field Value
Type | Description |
---|---|
Vector2 |
Properties
format
The data format identifier of the state.
Declaration
public FourCC format { get; }
Property Value
Type | Description |
---|---|
Four |
formatId
Memory format identifier for Touchscreen
Declaration
public static FourCC formatId { get; }
Property Value
Type | Description |
---|---|
Four |