Files
swiftcontrol/packages
jonas.bark@gmx.de c430d9e04d fix(gamepad): gamepads no longer crash BikeControl on Windows; update to gamepads 0.1.13
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>
2026-10-23 17:19:56 +02:00
..
2026-05-13 08:23:19 +02:00