Ue5 Meta quest controller battery levels

Hello everyone,

Ue4 controller battery levels forum post

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.


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

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

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?