mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 18:49:37 -10:00
A DualShock 4 or DualSense on Bluetooth and plugged in to charge is two devices to DirectInput, and both the DirectInput driver and the hybrid driver's DirectInput pads gave it two ports. Raw input already told the links apart by the pad's Bluetooth address; DirectInput gives the device's HID path too (DIPROP_GUIDANDPATH), so the enumeration reads the address the same way and leaves a pad's second link out. The address read moves to win_pad_ident.h, shared by raw input and DirectInput. It finds HID's two calls in hid.dll, so a build that links no HID library has it, and it runs where a pad connects - on the enumeration's task for DirectInput - never on a frame. win_pad_ident_test now holds a pad on both links to one port under every Windows joypad driver. The raw input rumble test counted every library load as XInput's; it counts XInput's.