# Using сlassic XRComponents

**URL:** <https://forum.magicleap.cloud/t/using-lassic-xrcomponents/2654>\
**Category:** Unity Development\
**Tags:** development, unity\
**Created:** [October 2, 2023, 9:48am UTC](https://forum.magicleap.cloud/t/using-lassic-xrcomponents/2654 "2023-10-02T09:48:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirill\_levchenko](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@kirill\_levchenko](https://forum.magicleap.cloud/u/kirill_levchenko)\
**Post date:** [October 2, 2023, 9:48am UTC](https://forum.magicleap.cloud/t/using-lassic-xrcomponents/2654/1 "2023-10-02T09:48:56Z")

</div>

An issue has been identified regarding the interaction with the controller through classic XR components. Specifically, when invoking functions from "UnityEngine.XR.OpenXR.Input", such as "SendHapticImpulse()", the controller fails to initiate a response.

As such, it is imperative to establish a suitable framework for working with the controller using fundamental XR components. What strategies should be employed to facilitate optimal functioning of the controller in this context?

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [October 2, 2023, 5:47pm UTC](https://forum.magicleap.cloud/t/using-lassic-xrcomponents/2654/2 "2023-10-02T17:47:45Z")

</div>

Hi @kirill_levchenko.

Currently the Unity Magic Leap SDK does not support open XR. However, our controller does support the generic Android Haptic Feedback API and the Haptic Feedback using the non OpenXR implementation.

However, for the best quality results, I recommend looking at our controller Example scene. The fastest implementation requires using a predefined haptic pattern like so (Recomended)

```auto
InputSubsystem.Extensions.Haptics.StartPreDefined(InputSubsystem.Extensions.Haptics.PreDefined.Type.A);

```

You can also create a custom haptic "buzz"

```auto
var buzz = InputSubsystem.Extensions.Haptics.Buzz.Create(200, 200, 4000, 20);
buzz.StartHaptics();

//or call static wrapper if u don't care about the object

InputSubsystem.Extensions.Haptics.StartBuzz(700, 200, 4000, 20);

```

You can also create a completely custom haptic pattern like so:

```auto
  var buzz1 = InputSubsystem.Extensions.Haptics.Buzz.Create(200, 800, 2000, 50);
        var preDefinedA = InputSubsystem.Extensions.Haptics.PreDefined.Create(InputSubsystem.Extensions.Haptics.PreDefined.Type.A);
        var preDefinedC = InputSubsystem.Extensions.Haptics.PreDefined.Create(InputSubsystem.Extensions.Haptics.PreDefined.Type.C);
        var buzz2 = InputSubsystem.Extensions.Haptics.Buzz.Create(800, 200, 2000, 20);

       // reference type to be cached
        var customHaptics= new InputSubsystem.Extensions.Haptics.CustomPattern();
        customHaptics.Add(in buzz1);
        customHaptics.Add(in preDefinedA, 500);
        customHaptics.Add(in preDefinedC, 500);
        customHaptics.Add(in buzz2); 
     
        customHatpics.StartHaptics();

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)\
**Post date:** [October 17, 2023, 5:48pm UTC](https://forum.magicleap.cloud/t/using-lassic-xrcomponents/2654/3 "2023-10-17T17:48:21Z")

</div>

Closed on October 17, 2023, 5:48pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
