How do I assign gamepad to a newly created playercontroller?

In unreal 4, once you make a new playercontroller using UGameplayStatics::CreatePlayer(), it seems like it assigns any extra gamepads connected to it. However in Unreal5, it seems like this isn’t the case. The playercontroller that I’ve created using UGameplayStatics::CreatePlayer() isn’t taking any input from my main nor second gamepad. However, when I use console commands like DebugCreatePlayer, it adds another playercontroller and that one takes input from my second gamepad.

Do I have to map the device onto the controller somehow? If so, any resources or methods that might be helpful?