mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-01 12:45:56 +00:00
PadInput remembers each slot's SDL controller type and name when it opens the controller, and on every update reads the slot's connection and SDL_JoystickCurrentPowerLevel through a PadStatusProvider. Only a changed snapshot is handed to the pad status display, so an idle loop takes no lock; hot-plug events reach it on the next update. A press of the ShowPadStatus key in the game window asks the display to show the panel. PadInput is no longer copyable, as its provider refers to it.