Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show battery status when controller is connected via USB #6

Open
MrPropre opened this issue Jul 5, 2022 · 3 comments
Open

Show battery status when controller is connected via USB #6

MrPropre opened this issue Jul 5, 2022 · 3 comments

Comments

@MrPropre
Copy link

MrPropre commented Jul 5, 2022

I can read battery status when controller is connected via bluetooth, but not when it is connected via the USB-C cable. I have an Xbox Series X controller

Thank you in advance

@tommaier123
Copy link
Owner

This program was made to read the battery status that is included in the bluetooth LE protocol by default, so it doesn't work with USB. If it is also standardized for USB it might be possible to add that feature in the future but I am not sure if it is.

@MrPropre
Copy link
Author

MrPropre commented Jul 5, 2022

Maybe for the moment you can show a charging icon when the controller is plugged via USB ? Just like the Xbox Accessories app do

image

@tommaier123
Copy link
Owner

tommaier123 commented Jan 12, 2025

I looked more into this. In theory it might be possible to read the battery level over USB. The problem is that only one program can control the gamepad. So if I read the battery level the game can't use the gamepad. That is likely also the reason why the xbox app only shows that it is connected.
But I have figured out how to check if a USB device is a gamepad. So I will be adding support for that soon so it at least shows a charging icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants