Forum Discussion
TheWrstScrnNmEv
5 years agoHonored Guest
GetControllerBatteryPercentRemaining for Quest always returns 0
Hi, I am looking to get the battery level for the touch controllers on a Quest 1 or 2 from Unity. I am calling
byte LBattery = OVRInput.GetControllerBatteryPercentRemaining(OVRInput.Controller.LTouch);
and same with RTouch.
but I only seem to get 0.
Has anyone else gotten this to work, and if so, what am I doing incorrect?
byte LBattery = OVRInput.GetControllerBatteryPercentRemaining(OVRInput.Controller.LTouch);
and same with RTouch.
but I only seem to get 0.
Has anyone else gotten this to work, and if so, what am I doing incorrect?
2 Replies
Replies have been turned off for this discussion
- TheWrstScrnNmEvHonored GuestLooks like it is somewhat working, although I do get 0's back for both controllers from time to time still.
- TarekNassefHonored Guest
Hello Brother !
The (OVRInput.GetControllerBatteryPercentRemaining) method is specifically designed for older Oculus devices and might not work as expected with the Quest 2. Only! You can check the condition of the battery Left and Right Controller to see if they need charging or not (status only)
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device