# If OpenXR plugin is used, input from VR controllers work only in VR, while using SteamVR they both both in VR and non-VR mode ( Play Selected Viewport )

**URL:** <https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [December 8, 2022, 4:01pm UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139 "2022-12-08T16:01:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TechAnim\_Tools](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techanim_tools/32/1213818_2.png) [@TechAnim\_Tools](https://forums.unrealengine.com/u/TechAnim_Tools)\
**Post date:** [December 8, 2022, 4:01pm UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/1 "2022-12-08T16:01:42Z")

</div>

Hi all,  
I’m upgrading a plugin for UE5, and since until 4.27 I was using SteamVR for controllers input, I would like to switch to OpenXR.  
I tested the VR Template and everything works fine, and checking the VRPawn I saw how the enhanced inputs/ Mapping works.  
I also notice that the inputs do work while in VR, but if I just hit Play in selected viewport ( so not in VR ) the inputs do not work at all.  
Reason why I need this is that in my plugin I do use controllers and Vive Trackers, but I’m not using VR, since I’m using the controllers/trackers as tracking for a full body mocap setup.

So is there a way to have the input work when not using VR with OpenXR?

---

<div class="post-metadata">

**Author:** ![TechAnim\_Tools](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techanim_tools/32/1213818_2.png) [@TechAnim\_Tools](https://forums.unrealengine.com/u/TechAnim_Tools)\
**Post date:** [December 11, 2022, 12:02am UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/2 "2022-12-11T00:02:59Z")

</div>

@VictorLerp I saw that you gave some informations [here](https://forums.unrealengine.com/t/openxr-in-a-blank-template-using-htc-vive-steam-vr-5-1-0/688372/6), but there’s no much information regarding the XR\_MND\_headless in 5.1  
Can you please share some informations about this?

---

<div class="post-metadata">

**Author:** ![Rectus\_SA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rectus\_SA](https://forums.unrealengine.com/u/Rectus_SA)\
**Post date:** [December 11, 2022, 1:11pm UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/3 "2022-12-11T13:11:24Z")

</div>

Seems like it’s enabled by launching with the `-xrtrackingonly` command line parameter. It doesn’t seem to properly enable tracking on motion controller components though.

---

<div class="post-metadata">

**Author:** ![TechAnim\_Tools](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techanim_tools/32/1213818_2.png) [@TechAnim\_Tools](https://forums.unrealengine.com/u/TechAnim_Tools)\
**Post date:** [December 11, 2022, 2:15pm UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/4 "2022-12-11T14:15:26Z")

</div>

Thanks for the reply.  
So the alternative is to wait for an hotfix or 5.2 I guess ☹

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [December 12, 2022, 9:30pm UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/5 "2022-12-12T21:30:23Z")

</div>

While we did implement the extension, we’re still working on all of the features to make trackers and controller input work while in headless mode. Target is 5.2.

---

<div class="post-metadata">

**Author:** ![jeteseSA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jeteseSA](https://forums.unrealengine.com/u/jeteseSA)\
**Post date:** [June 22, 2023, 3:20pm UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/6 "2023-06-22T15:20:55Z")

</div>

Are the controllers already working in 5.2? I don’t seems to find a way to use them

---

<div class="post-metadata">

**Author:** ![Lukaris01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lukaris01](https://forums.unrealengine.com/u/Lukaris01)\
**Post date:** [July 4, 2023, 11:11pm UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/7 "2023-07-04T23:11:26Z")

</div>

Yes, sadly I also dont get it to work… however I have seen people where they get it to work, so I am confused, how they did it.

Any feedback would be great

---

<div class="post-metadata">

**Author:** ![ianbercov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ianbercov](https://forums.unrealengine.com/u/ianbercov)\
**Post date:** [February 11, 2024, 1:22am UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/8 "2024-02-11T01:22:49Z")

</div>

Heya,

What do you mean by headless mode?

I’m currently running some Steam VR config settings to use index controllers without the headset. I instead connect the index controllers to vive tracker dongles. Does “headless” have anything to do with this? And if so, is there another method? : )

I’m having the darndest issue, where the only way to get the index controllers to work with this Steam VR config is the following:

1. I can add them with LiveLinkXR as a source and they do show up with the transform role and track fine, but no idea how to get controller button presses to work

2. If and only if I make an editor utility actor and set ReceiveEditorInput to true then push that input component to Enhanced Input then set my mapping context, the button presses and thumbstick work!

For the life of me I cannot get any buttons on the index to work otherwise

Also these two things only work when I launch the editor with the param -XRtrackingonly

---

<div class="post-metadata">

**Author:** ![surferHalo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@surferHalo](https://forums.unrealengine.com/u/surferHalo)\
**Post date:** [February 27, 2024, 6:32am UTC](https://forums.unrealengine.com/t/if-openxr-plugin-is-used-input-from-vr-controllers-work-only-in-vr-while-using-steamvr-they-both-both-in-vr-and-non-vr-mode-play-selected-viewport/724139/9 "2024-02-27T06:32:37Z")

</div>

Still not working in 5.3, I used to use SteamVR plugin, its working in headless mode, but the plugin is deprecated, now, I can only use controller in VR mode, but not in normal PIE mode.
