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

Summary: [PATCH] Rawinput: Get correlated XInput battery info.
Product: SDL Reporter: Joel Linn <jl>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.13   
Hardware: All   
OS: Windows 10   
Attachments: Implement battery level for rawinput xinput devices.

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