mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
PadKindFromSdl and PadPowerFromSdl turn SDL's game controller type and joystick power level (SDL_JoystickCurrentPowerLevel: unknown, empty, low, medium, full, wired) into the pad status types. SDL_JOYSTICK_POWER_MAX is the enumeration's bound, not a level, and reads as unknown, like any value outside the enumeration. They are plain functions of the enums, so tests need neither an SDL subsystem nor a device.