Linux now dispatches OnControllerConnectionChange when gamepad is connected/disconnected.

#jira UE-25696
#rb Brandon.Schaefer

[CL 16831480 by robert seiver in ue5-main branch]
This commit is contained in:
robert seiver
2021-07-12 17:03:25 -04:00
parent d208247526
commit 1d3b24aee1
@@ -2078,6 +2078,8 @@ void FLinuxApplication::AddGameController(int Index)
ControllerState.Haptic = nullptr;
}
}
FCoreDelegates::OnControllerConnectionChange.Broadcast(true, -1, Id);
}
void FLinuxApplication::RemoveGameController(SDL_JoystickID Id)
@@ -2097,4 +2099,6 @@ void FLinuxApplication::RemoveGameController(SDL_JoystickID Id)
SDL_GameControllerClose(ControllerState.Controller);
ControllerStates.Remove(Id);
FCoreDelegates::OnControllerConnectionChange.Broadcast(false, -1, Id);
}