OneNightBlitz
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by OneNightBlitz
-
-
15 hours ago, JoeJ said:
You should be able to listen for the event. I think there are several different battery events you can get access to. The Wave.Essence.Events has this api but I think there are others in the legacy plugin.
SystemEvent.Listen(WVR_EventType.WVR_EventType_BatteryPercentageUpdate, OnBatteryEvent);
15 hours ago, JoeJ said:Here is another API I just ran across that looks a bit easier: Interop.WVR_GetDeviceBatteryPercentage(WVR_DeviceType.WVR_DeviceType_HMD);
I tried both of these. The former keeps throwing me errors regarding a missing wave_api.dll regardless if the DLL is in the Assets folder or not. The latter just returns the value of 1 for any device type I use as a parameter.
I feel like the GetDeviceBatteryPercentage Interop is not meant for either Cosmos or PCVR. Are there other methods I can try?
-
I'm currently developing an application using Unity Engine and OpenXR and I was hoping if there's a way I can access the battery levels for each controller.
Can I fetch controller battery percentages directly from Vive Console?
in VIVE Console Software
Posted
I'm currently developing an OpenXR application with Unity and Vive Cosmos and I am looking for a way to access battery levels for connected Cosmos controllers. In a previous thread, a user suggested that I use Wave.Essence.Events or Interop to get the values. Unfortunately, these either return a default value or throw a missing DLL exception for wave_api when trying to write logs. I'm hoping if there is a function from the console that I can use to fetch the values. Thanks in advance!