NiyaShy / XB1ControllerBatteryIndicator

A tray application that shows a battery indicator for an Xbox-ish controller and gives a notification when the battery level drops to (almost) empty.
GNU General Public License v2.0
707 stars 53 forks source link

Integration with RTSS #91

Open realgooseman opened 1 month ago

realgooseman commented 1 month ago

Hi @NiyaShy,

I haven't seen anyone mention this in the issues, but have you ever considered integrating your useful tool with RTSS ?

It's the best and most feature packed OSD software for gaming. Sending battery level information to it via your tool would improve it.

That information sent from your tray app can be integrated by the RTSS overlay and be seen in full screen games at all times. That would remove the need for the Xbox Game Bar for example as the battery level will be shown with another overlay (RTSS)**.

A page I've found on how to use their API / SDK :

https://forums.guru3d.com/threads/rtss-rivatuner-statistics-server-using-the-api.410075/

These projects integrate nicely with RTSS for example :

https://github.com/lich426/FanCtrl https://github.com/Jagailo/YetAnotherKeyDisplayer

** : The RTSS overlay can be fully customized and that's a huge plus compared to Xbox's Game Bar.

NiyaShy commented 1 month ago

Hey, I can take a look at it, but from what I've seen there's no proper documentation for the API and only examples in C++ which is a huge bummer for people like me who only work with C#... So you can consider this a low priority.

realgooseman commented 1 month ago

I agree, the documentation is almost non existant online.

The projects I mentioned both use C# and integrated RTSS. FanCtrl for example integrated RTSS in v1.1.6 and I found details about the implementation here :

https://github.com/lich426/FanCtrl/tree/master/src/libs/Data/OSD https://github.com/lich426/FanCtrl/blob/master/src/libs/Data/OSD/OSDItem.cs

As an end user, I'm not experienced in coding but hope it helps. Adding RTSS is not mandatory but would improve the experience and make the Xbox Game Bar redundant.