Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Create default hand interaction for spatial pointer pose #516

Merged
merged 1 commit into from
Apr 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using UnityEngine;
using XRTK.Definitions.Controllers.Hands;
using XRTK.Definitions.Devices;
using XRTK.Definitions.InputSystem;
using XRTK.Definitions.Utilities;
using XRTK.Interfaces.InputSystem;
using XRTK.Interfaces.Providers.Controllers;
Expand Down Expand Up @@ -37,6 +38,18 @@ public BaseHandController(IMixedRealityControllerDataProvider dataProvider, Trac
private Vector3 lastPalmNormal;
private Vector3 lastPalmPosition;

/// <inheritdoc />
public override MixedRealityInteractionMapping[] DefaultInteractions { get; } =
{
new MixedRealityInteractionMapping(0, "Spatial Pointer Pose", AxisType.SixDof, DeviceInputType.SpatialPointer, MixedRealityInputAction.None)
};

/// <inheritdoc />
public override MixedRealityInteractionMapping[] DefaultLeftHandedInteractions => DefaultInteractions;

/// <inheritdoc />
public override MixedRealityInteractionMapping[] DefaultRightHandedInteractions => DefaultInteractions;

/// <summary>
/// Gets the current palm normal of the hand controller.
/// </summary>
Expand Down