mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 07:03:54 +00:00
Fixed detecting PS4 controllers on Android
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user