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

Can't get battery status of bluetooth gamepads on Android #4714

Closed
Wohlstand opened this issue Sep 3, 2021 · 2 comments
Closed

Can't get battery status of bluetooth gamepads on Android #4714

Wohlstand opened this issue Sep 3, 2021 · 2 comments

Comments

@Wohlstand
Copy link
Contributor

Wohlstand commented Sep 3, 2021

Recently I made a small test with SDL_JoystickCurrentPowerLevel() that should report the battery status of a wireless game controller.

  • On Linux Mint it works with a PS4 controller via Bluetooth (I haven't tested the Xbox controller I had, because my Bluetooth dongle won't detect it).
  • On Android, both controllers were working via Bluetooth but won't return the battery status (reports the unknown status).

Are there some challenges against implementing this ability, or here is a bug?

@AntTheAlchemist
Copy link
Contributor

On Windows 10 my Xbox One S controller was reporting "Unknown" at first but then later reported "Medium" after some time.

I can confirm that battery isn't reported via Bluetooth Android. Touchpads & sensors don't work either, which might be problem related to something lost in translation when using Bluetooth.

@slouken
Copy link
Collaborator

slouken commented Oct 30, 2021

As far as I know, Android doesn't expose the battery status.

@slouken slouken closed this as completed Nov 7, 2021
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

3 participants