# Ue5 Meta quest controller battery levels 

**URL:** <https://forums.unrealengine.com/t/ue5-meta-quest-controller-battery-levels/1958128>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 1, 2024, 1:51pm UTC](https://forums.unrealengine.com/t/ue5-meta-quest-controller-battery-levels/1958128 "2024-08-01T13:51:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick.Kuipers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Patrick.Kuipers](https://forums.unrealengine.com/u/Patrick.Kuipers)\
**Post date:** [August 1, 2024, 1:51pm UTC](https://forums.unrealengine.com/t/ue5-meta-quest-controller-battery-levels/1958128/1 "2024-08-01T13:51:58Z")

</div>

Hello everyone,

[Ue4 controller battery levels forum post](https://forums.unrealengine.com/t/oculus-quest-controllers-battery-levels/158591)

I’m trying to read the quest 3 controller battery levels within our unreal application. In the past I was able to get it working in Ue4.27 with the approach in the forum post I’ve linked above.  
However, going to Ue5 the plugin setup for MetaXR has changed a bit and I cannot see how to do this now.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/0/2b048a29a2871ddb316d7584a22fba6c887fef76.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/e/45e6ffaa590bbdcb50a6405d130b30c348758aff.png)

I can find similar logic in some of the MetaXR plugin files and some ovr plugin related stuff within the MetaXR plugin folder.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/c/fbccfa2c7267c1d4705131617ea4813059eb97c0.png)

I’ve added, what i think are, the new modules here but am unable to reference files like OVR\_Plugin.h. This does allow me to reference some MetaXR plugin files like OculusXRHMD.h but I haven’t found something I can currently reference that will provide the info i’m after.

Any advice on referencing the OVRPlugin files in Ue5 would be greatly appreciated.

Thanks,  
Matthew

---

<div class="post-metadata">

**Author:** ![Patrick.Kuipers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Patrick.Kuipers](https://forums.unrealengine.com/u/Patrick.Kuipers)\
**Post date:** [August 6, 2024, 10:04am UTC](https://forums.unrealengine.com/t/ue5-meta-quest-controller-battery-levels/1958128/2 "2024-08-06T10:04:02Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/0/bd09b3357787fa381bb40841765a28e8e0716369.png)

I got it working, to an extent, with the includes shown above. However, BatteryPercentRemaining is always returning 0.0. I tried getting the IndexTrigger value, as shown, and that returns a 0 - 1 value based on input. I know its a pretty specific topic but has anyone been able to get this working?
