mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-02 10:09:09 +01:00
The Store health report lists access violations in gamepads_windows_plugin.dll. The vendored plugin shared its pad list between GameInput's callback thread, one detached reader thread per pad and the platform thread without a lock: listGamepads (polled every 3 s) could read a pad that a disconnect had just freed, and on shutdown the readers kept calling into the deleted plugin. - Pads are shared_ptr-owned under a mutex; listGamepads returns copies. - Reader threads are joined when their pad disconnects and on shutdown. - Events are posted to a message-only window and sent from the platform thread, the only thread a channel may be used from. Also moves to gamepads 0.1.13: the vendored Windows plugin takes 0.3.2's connection events, vendorId/productId and rumble (on the GameInput v2 API it already uses), and the vendored darwin plugin now also serves iOS, which 0.1.12 moved from gamepads_ios to gamepads_darwin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>