Jump to content

OneNightBlitz

Verified Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by OneNightBlitz

  1. 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!

  2. 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?

×
×
  • Create New...