# Valve Index and haptic feedback with OpenXR

**URL:** <https://forums.unrealengine.com/t/valve-index-and-haptic-feedback-with-openxr/509213>\
**Category:** XR Development\
**Tags:** unreal-engine, UE4-27, OpenXR\
**Created:** [March 23, 2022, 4:39pm UTC](https://forums.unrealengine.com/t/valve-index-and-haptic-feedback-with-openxr/509213 "2022-03-23T16:39:50Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![jimsnomis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jimsnomis](https://forums.unrealengine.com/u/jimsnomis)\
**Post date:** [August 13, 2022, 8:22am UTC](https://forums.unrealengine.com/t/valve-index-and-haptic-feedback-with-openxr/509213/24 "2022-08-13T08:22:50Z")

</div>

I found a work-around if you’re building from source:

OpenXRInput.cpp

```auto
void FOpenXRInputPlugin::FOpenXRInput::SetHapticFeedbackValues(int32 ControllerId, int32 Hand, const FHapticFeedbackValues& Values)
...
HapticValue.duration = MaxFeedbackDuration/20.0; 
...

```

What’s happening is that the Haptic duration is always set to 2.5 seconds. On the Vive Wands they are continuing to rumble for this time.

This is a work-around as the stop haptics function (xrStopHapticFeedback) should work for the Vive OpenXR implementation and isn’t stopping the haptics.

---

_[View the full topic](https://forums.unrealengine.com/t/valve-index-and-haptic-feedback-with-openxr/509213)._
