mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 21:09:34 -10:00
A DualShock 2 powers on in digital mode, so its sticks did nothing until the player pressed Analog. Once per connection, when a pad is stable with no request in flight and reports a digital mode, the driver asks for DualShock mode if the pad's mode table offers one, unlocked so the Analog button still switches it back. Pads already in analog mode, pads with no DualShock mode and pads not yet stable are left alone, and none is queried again until it reconnects. The ps2_joypad lane checks the request is made once, unlocked, again after a reconnect and only once a busy request completes, and never for the pads above; the PS2 libpad stub gains padGetReqState(), padInfoMode() and padSetMainMode().