mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 09:03:22 -05:00
scePadOpen returned the standard pad's handle for a special port (type 2) as well, and scePadGetHandle found it there. Both ports then read the one input queue, so a press queued between two frames could be drained by the special port's read and never reach the standard port. PPSA16827 (Harmony's Odyssey) opens both ports for the initial user and reads both every frame, also polling controller information and device class data for the special one. Special ports now return DEVICE_NOT_CONNECTED (0x80920007) from scePadOpen, as scePadOpenExt already does because the host has no special controller, and scePadGetHandle has no handle for them. TechnicalDebt's scePadOpenExt entry now covers both calls. guest_pad opens a special port before and after the standard one and expects DEVICE_NOT_CONNECTED, and DEVICE_NO_HANDLE from scePadGetHandle for the special port while the standard handle stays valid. It fails on main. PPSA16827 over 130 s of its title screen: 6812 scePadRead, 3408 scePadGetControllerInformation and 3406 scePadDeviceClassParseData calls before, two reads of the same queue per frame; 2702 reads, one information call and no parse calls after.