mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
When a device came or went, SDL's gamepad update first found every device again, 100 ms and more, on the game's polling thread with the input lock held: a controller disconnecting gave five frames of 120 to 240 ms in a row, with the game's other pollers queued on the lock. The pad thread now makes SDL's initialisation and every update. A poll asks for an update and waits at most 2 ms for it; an ordinary one is done in microseconds and the poll reads fresh state as before, and during a device search the poll goes on with the state it read last. Rumble, the motion samples and the menu's stick reading skip a beat then instead of waiting. --probe-input checks it on a virtual gamepad, with an update made to take 300 ms. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
61 KiB
61 KiB