Tekk-Know / RazerBatteryTaskbar

45 stars 18 forks source link

How do you pull the battery information #14

Closed ashley-gibbs closed 6 months ago

ashley-gibbs commented 6 months ago

Hi there. Can I ask how it is that you actually grab the battery level from these devices. I am working on a plugin for an application called SimHub and I would like to add in the ability to pull battery level indicators for various wireless headsets. I am struggling to find where it is I can actually call this information from in my code. Any help would be greatly appreciated as I am used to working with game readers and telemetry rather than pulling info from devices.

Tekk-Know commented 6 months ago

You can check the code, but it's basically a combination of a USB lib and transmission codes which correspond to "commands" which exist in the devices firmware. For each device you have to figure out how to ask for battery level.