# 5.1 local multiplayer not working

**URL:** <https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733>\
**Category:** Getting Started & Setup\
**Tags:** bug, broken, unreal-engine\
**Created:** [November 23, 2022, 8:08am UTC](https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733 "2022-11-23T08:08:18Z")\
**Posts on this page:** 5\
**Page:** 4

<div class="post-metadata">

**Author:** ![JamesMGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamesMGames](https://forums.unrealengine.com/u/JamesMGames)\
**Post date:** [August 29, 2024, 8:55pm UTC](https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733/64 "2024-08-29T20:55:13Z")

</div>

Just want to second @Soar in thanking @schuan for this plugin. Was in a similar situation trying to get keyboard + controller to work in 5.3.2 and it resolved the issue immediately. Definitely recommend for anyone trying this in 5.3.

---

<div class="post-metadata">

**Author:** ![markogonzalez84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@markogonzalez84](https://forums.unrealengine.com/u/markogonzalez84)\
**Post date:** [October 10, 2024, 1:55am UTC](https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733/65 "2024-10-10T01:55:53Z")

</div>

Hi, dont work for me, I use the version 5.3.2, but it not compile… can you help me?

---

<div class="post-metadata">

**Author:** ![ZimaXXX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZimaXXX](https://forums.unrealengine.com/u/ZimaXXX)\
**Post date:** [December 18, 2024, 4:40pm UTC](https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733/66 "2024-12-18T16:40:24Z")

</div>

UE 5.5 here and issue is still present.  
Unfortunately the PlatformUserId is not the only issue here. In my setup of keyboard and 2 XBOX Series Gamepads (Wireless + Wired) only recognizes 2 DeviceIds and thus creates 2 PlatformIds on start. Sometimes it recogniezes 3 DeviceIds and third one is a None which is although Connected. Changing focus on window also changes the Gamepads assignments. I spent 3 days on this and I can only call it a disaster.

---

<div class="post-metadata">

**Author:** ![ZimaXXX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZimaXXX](https://forums.unrealengine.com/u/ZimaXXX)\
**Post date:** [April 10, 2025, 6:42am UTC](https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733/67 "2025-04-10T06:42:03Z")

</div>

I finally found a way to force proper controller assignments in UE 5.5. This is purely Xinput solution so only for Xbox Controllers. You need to take Xinput Plugin from engine and place it in project under Plugins/Runtime/Windows/XinputDevice (or edit in engine if from GitHub).

Next edit the GetPlatformUserAndDevice method as below.

You also need to add “EngineSettings” module to plugin’s build.cs.

This is a temporary fix that will most likely fail to work on consoles and other gamepads. I didn’t test dynamic reassignemnts as well.

```auto
/*
 * Fix/Hack for Gamepad mapping so it omits assigning the first controller to first player when requested
 */
void XInputInterface::GetPlatformUserAndDevice(int32 InControllerId, EInputDeviceConnectionState InDeviceState, FPlatformUserId& OutPlatformUserId, FInputDeviceId& OutDeviceId)
{
	bool bSkipPlayer1 = UGameMapsSettings::GetGameMapsSettings()->GetSkipAssigningGamepadToPlayer1();
	if (bIsPrimaryDevice)
	{
		if (bSkipPlayer1)
		{
			InControllerId = InControllerId + 1;
		}
		IPlatformInputDeviceMapper& DeviceMapper = IPlatformInputDeviceMapper::Get();
		DeviceMapper.RemapControllerIdToPlatformUserAndDevice(InControllerId, OUT OutPlatformUserId, OUT OutDeviceId);

		//Check if this controller was already assigned because it can be in Unknown state for some reason... And we don't want to pass it every time as we're going to be spammed with UI Editor messages
		TArray<FInputDeviceId> Devices;
		DeviceMapper.GetAllInputDevicesForUser(OutPlatformUserId, Devices);
		bool bDeviceIsAdded = Devices.Contains(OutDeviceId);
		if (InDeviceState == EInputDeviceConnectionState::Connected || InDeviceState == EInputDeviceConnectionState::Disconnected || !bDeviceIsAdded)
		{
			DeviceMapper.Internal_MapInputDeviceToUser(OutDeviceId, OutPlatformUserId, InDeviceState);
		}
	}
	else
	{
		OutDeviceId = FInputDeviceId::CreateFromInternalId(InControllerId);
	}
}

```

---

<div class="post-metadata">

**Author:** ![PHninha09](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phninha09/32/1183561_2.png) [@PHninha09](https://forums.unrealengine.com/u/PHninha09)\
**Post date:** [July 12, 2025, 11:09pm UTC](https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733/68 "2025-07-12T23:09:39Z")

</div>

It may be that the examples used in the class of this plugin will also help. And there are also examples of how to implement local multiplayer in the game mode.

[WindowsDualsenseUnreal: Plugin](https://github.com/rafaelvaloto/WindowsDualsenseUnreal/tree/master?tab=readme-ov-file#multiple-players-with-multiple-controllers)

[Previous page](https://forums.unrealengine.com/t/5-1-local-multiplayer-not-working/713733.md?page=3)
