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
730 stars 52 forks source link

Auto mini toast just showing the battery percentage when connected for the first time #42

Open ajaykaps opened 4 years ago

ajaykaps commented 4 years ago

This is a feature request, When an Xbox controller is connected can the app make a small(5-7) second toast only showing the current battery percentage.

Thanks.

NiyaShy commented 4 years ago

Hey, showing a toast on events other than empty level should work. But for one, percentage isn't possible (the API only gives the rough values you already get), and I don't see that much use in such a feature.

If more people show interest in this I might think about adding it, but if you stay the only one it's not worth the effort for me.

ajaykaps commented 4 years ago

Thank you for the response, I completely agree with you, it's pointless to code for just a single person. I did not know that you can't get the exact battery percentage. If requested by many, how about showing a toast like Full/Medium/Low ?

NiyaShy commented 3 years ago

It's not exactly what you asked for, but the testing branch now contains a popup/overlay that can get displayed on low battery and/or when you press the xbox button. Looks, position and display duration can be adjusted, an example: image

Would that be good enough or do you still want it to show up automatically?

ajaykaps commented 3 years ago

Looks amazing, that's perfect, I think it should popup when the controller is connected, or the battery level changes. Similar to what we would get on an Xbox.