We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5373 - [PATCH] Rawinput: Get correlated XInput battery info.
Summary: [PATCH] Rawinput: Get correlated XInput battery info.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.13
Hardware: All Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-01 17:33 UTC by Joel Linn
Modified: 2020-12-01 21:37 UTC (History)
0 users

See Also:


Attachments
Implement battery level for rawinput xinput devices. (2.79 KB, patch)
2020-12-01 17:33 UTC, Joel Linn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Linn 2020-12-01 17:33:30 UTC
Created attachment 4549 [details]
Implement battery level for rawinput xinput devices.

Currently the rawinput driver always reports a device as "wired". This changes that to "unknown" and updates it once the device is correlated with xinput.
Comment 1 Sam Lantinga 2020-12-01 21:37:17 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/f5ab0541c048