Fixed detecting PS4 controllers on Android

This commit is contained in:
Sam Lantinga
2026-06-04 09:19:28 -07:00
parent 0c8feecce6
commit e5bbef0dbc

View File

@@ -173,6 +173,10 @@ class SDLDeviceListener implements InputDeviceListener
@Override
public void onInputDeviceChanged(int deviceId) {
// The controller might not have had joystick sources previously
if (SDLControllerManager.isDeviceSDLJoystick(deviceId)) {
SDLControllerManager.mJoystickHandler.deviceAdded(deviceId);
}
}
@Override