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

Commit

Permalink
Create default hand interaction for spatial pointer pose (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
FejZa authored Apr 11, 2020
1 parent 4bcdd06 commit d604575
Showing 1 changed file with 13 additions and 0 deletions.
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

0 comments on commit d604575

Please sign in to comment.