mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 01:39:07 +02:00
DualShock, DualSense and Switch Pro pads are read with a blocking ReadFile on the input thread, and WM_DESTROY joins that thread. If the pad stops sending reports the read never returns, so the window is gone but the process stays. Cancel the thread's I/O until it stops, retrying in case a cancel lands just before a read starts. This also covers the synchronous writes the pads' shutdown does. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Just open the MSVC project file and build.