# Problem with Enhanced Input and Split Screen on UE 5.1

**URL:** <https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667>\
**Category:** Blueprint\
**Tags:** Input, unreal-engine, Blueprint, question\
**Created:** [November 24, 2022, 3:59pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667 "2022-11-24T15:59:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gixo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gixo/32/888506_2.png) [@Gixo](https://forums.unrealengine.com/u/Gixo)\
**Post date:** [November 24, 2022, 3:59pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/1 "2022-11-24T15:59:08Z")

</div>

I’m having a problem with using two game pads for a split screen game using enhanced input in UE 5.1.  
I manually spawn player characters in my project but I used third-person templates to test this problem as well.  
I’m having trouble getting my game pads to work with it, they won’t get assigned automatically like before and getting a reference ID to “Enhanced Input Local Player Subsystem” node only work on player 0 and both my game pads control player 0. Even getting a controller reference from create local player to it only works for player 0.  
I’ve been wondering if anyone has a proper way of setting it up.  
Like no matter what controller id I get to the Enhanced input node for mapping it either doesn’t for neither players or all game pads only control player 0 at the same time.  
Thank you in advanced.

---

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [November 24, 2022, 5:34pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/2 "2022-11-24T17:34:04Z")

</div>

@Gixo  
Is there any way you could provide screenshots of your blueprint setup?  
-Zen

---

<div class="post-metadata">

**Author:** ![Gixo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gixo/32/888506_2.png) [@Gixo](https://forums.unrealengine.com/u/Gixo)\
**Post date:** [November 24, 2022, 9:51pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/4 "2022-11-24T21:51:04Z")

</div>

So I have two gamepads hooked up and both of them are working and navigate the editor’s viewport. As I play the game only keyboard and my first gamepad are injecting input and changing “Skip Assigning Gamepad to Player 1” option won’t make any difference.  
In the first image my keyboard and my first gamepad control player 0 or don’t work at all.  
On the second one I made a custom controller blueprint and I was able to directly input movement to only player 1 but I don’t think that would be a scalable solution.  
Also I have tried to disable default pawn class and manually create players and spawning them and posses them by controllers and get a reference from it to “Enhance Input Local Player Subsystem” node by a player controller variable on the spawn but it didn’t work.  
My gamepads work fine on UE 5.0.3 with the old input system.

 ![01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/4/284a6f7afedf7f8be7f178a9090896c25bea04fc.jpeg)  
 ![02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/c/67c79679aac440871764c75590a544ed471638a4.png)

---

<div class="post-metadata">

**Author:** ![Caviarail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Caviarail](https://forums.unrealengine.com/u/Caviarail)\
**Post date:** [December 6, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/5 "2022-12-06T18:44:27Z")

</div>

I updated to 5.1 a few days ago and have the exact same issue. Everything was fine before but all of a sudden any Gamepad that isn’t the first one, is not recognized by the game anymore.

Update: Just realized that the sample game Lyra also has a local multiplayer included. And it’s working in there. So I guess looking into that makes sense. I don’t have the time tonight, but If I find an answer I’ll make a new reply here.

---

<div class="post-metadata">

**Author:** ![Caviarail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Caviarail](https://forums.unrealengine.com/u/Caviarail)\
**Post date:** [December 7, 2022, 5:59pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/6 "2022-12-07T17:59:28Z")

</div>

I found what I was looking for. The lyra project uses this to spawn its players. I don’t know why, yet, but using CreateLocalPlayerForPlatformUser (instead of CreateLocalPlayer) works for me. All I can say is, that GetAllActiveUsers retrieves a map of plugged-in devices, which is already useful.

 ![Snipaste_2022-12-07_18-57-14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/f/a1fc1a3725b1b3d06ce26e043d7b4556fcfbdd1e.jpeg)

Hope that helps you and others out there, too!

---

<div class="post-metadata">

**Author:** ![Gixo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gixo/32/888506_2.png) [@Gixo](https://forums.unrealengine.com/u/Gixo)\
**Post date:** [December 7, 2022, 10:32pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/7 "2022-12-07T22:32:29Z")

</div>

Thank you for your reply.  
Unfortunately it’s not working for me, it behaves the same as before and I tested it on default template to be sure as well.  
The weird thing I noticed is that when I check spawn players as spectators in game mode each controller moves the cameras as it should.  
“Skip Assigning Gamepad to Player 1” is not working as well.

---

<div class="post-metadata">

**Author:** ![DokiDerg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dokiderg/32/623835_2.png) [@DokiDerg](https://forums.unrealengine.com/u/DokiDerg)\
**Post date:** [December 20, 2022, 2:08am UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/8 "2022-12-20T02:08:15Z")

</div>

Alright after a lot of work into this as i was facing the issue too

The get controller variable takes time to spawn in, the fix is really easy

simply add a delay before you call the cast controller method  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/2/4b21dcf4f67fea549dff1d30fe840efca4cf1668.png)  
(the Create Controls is just a macro i made for the creation event, its just copied from third person and unchanged)

---

<div class="post-metadata">

**Author:** ![WalterEspinar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WalterEspinar](https://forums.unrealengine.com/u/WalterEspinar)\
**Post date:** [December 21, 2022, 11:55pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/9 "2022-12-21T23:55:27Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Gixo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gixo/32/888506_2.png) [@Gixo](https://forums.unrealengine.com/u/Gixo)\
**Post date:** [December 23, 2022, 1:02am UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/10 "2022-12-23T01:02:29Z")

</div>

Thanks a lot for finding a solution!

For anyone who’s having this issue adding a delay node before “Cast To Player Controller” in player’s blueprint only worked for me in combination with [Caviarail’s Solution](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/6) and not the single “Create Local Player” node.  
Also “Skip Assigning Gamepad to Player 1” still doesn’t do anything for me.

---

<div class="post-metadata">

**Author:** ![martem000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martem000/32/618779_2.png) [@martem000](https://forums.unrealengine.com/u/martem000)\
**Post date:** [February 2, 2023, 8:58pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/11 "2023-02-02T20:58:46Z")

</div>

Could you show me more details? I can’t figure out what needs to be changed.

I assume it’s in BP\_ThirPersonCharacter

---

<div class="post-metadata">

**Author:** ![CausticHell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CausticHell](https://forums.unrealengine.com/u/CausticHell)\
**Post date:** [February 4, 2023, 1:13pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/12 "2023-02-04T13:13:29Z")

</div>

Yeah, like wtf is their problem!!!

---

<div class="post-metadata">

**Author:** ![Gixo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gixo/32/888506_2.png) [@Gixo](https://forums.unrealengine.com/u/Gixo)\
**Post date:** [February 8, 2023, 7:41pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/13 "2023-02-08T19:41:34Z")

</div>

Hopefully this helps:

 ![split-screen-example](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/9/1490766a46ea7064d46a7892854dfc04fb2f02f8.png)

---

<div class="post-metadata">

**Author:** ![discozone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@discozone](https://forums.unrealengine.com/u/discozone)\
**Post date:** [February 9, 2023, 8:28am UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/14 "2023-02-09T08:28:31Z")

</div>

Hi ! Thanks for the help !  
Unfortunately, in my case, “Get All Active Users” returns a list of only 1 entry. Therefore, it does not create a second player, event though my gamepad is connected (is I can move the player 1 with it)

---

<div class="post-metadata">

**Author:** ![NEVQ151](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NEVQ151](https://forums.unrealengine.com/u/NEVQ151)\
**Post date:** [February 10, 2023, 10:27am UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/15 "2023-02-10T10:27:47Z")

</div>

The first physical controller will always bind to the first PlayerController, together with mouse and keyboard. There is a setting in the project settings to bind the first controller to the 2nd PlayerController, but for me it never worked and 1st physical controller always binds to 1st PlayerController, setting checked or not. So you would need a 2nd physical controller to test and control a 2nd PlayerController

---

<div class="post-metadata">

**Author:** ![Ryunawa1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryunawa1/32/690884_2.png) [@Ryunawa1](https://forums.unrealengine.com/u/Ryunawa1)\
**Post date:** [February 10, 2023, 12:08pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/16 "2023-02-10T12:08:41Z")

</div>

Thanks for this ! This work fine for me but I got another issue, I can spawn an infinite number of player, do you have any idea where it come from ?

---

<div class="post-metadata">

**Author:** ![Ryunawa1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryunawa1/32/690884_2.png) [@Ryunawa1](https://forums.unrealengine.com/u/Ryunawa1)\
**Post date:** [February 10, 2023, 1:33pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/17 "2023-02-10T13:33:23Z")

</div>

Nevermind, I just forgot to plug the return value from my spawn actor node to the “In Pawn” Possess node and now I just came back to my previous error which is : I can’t spawn two player because my keyboard and my controller can both move my character, so thanks anyway

EDIT : The node “Get All Active Players” always return user id 0 and number of active platform users 1, so I believe there is an error from here

---

<div class="post-metadata">

**Author:** ![Gixo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gixo/32/888506_2.png) [@Gixo](https://forums.unrealengine.com/u/Gixo)\
**Post date:** [February 11, 2023, 8:36pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/18 "2023-02-11T20:36:31Z")

</div>

Yeah, I think it might be a bug or something that the “skip assigning gamepad to player 1” used to work in previous versions of UE and now is not working in 5.1.x.  
The fix only works for two gamepads. Keyboard and the first gamepad controlled the first player no matter what I did.

---

<div class="post-metadata">

**Author:** ![NEVQ151](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NEVQ151](https://forums.unrealengine.com/u/NEVQ151)\
**Post date:** [February 14, 2023, 8:29am UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/19 "2023-02-14T08:29:59Z")

</div>

Does anyone have any documentation on the new PlatformUserIds? I am guessing that they are meant to replace the LocalControllerId but it would be nice to be sure. I have written some C++ functions to access the InternalId of the PlatformUserId to use that instead of the LocalControllerId for identifying the local players in my game. But I would really like to know if I am using it the way it’s intended 😃

---

<div class="post-metadata">

**Author:** ![Ryunawa1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryunawa1/32/690884_2.png) [@Ryunawa1](https://forums.unrealengine.com/u/Ryunawa1)\
**Post date:** [February 20, 2023, 8:24am UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/20 "2023-02-20T08:24:35Z")

</div>

Hi, thanks for the update. On my side the second controller is never detected, like I can spawn my first player with the first controller I connected (physically) to the computer but the second one can’t do anything.  
Does someone know if I might have missed something ?

---

<div class="post-metadata">

**Author:** ![davabase](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davabase](https://forums.unrealengine.com/u/davabase)\
**Post date:** [February 25, 2023, 11:15pm UTC](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667/21 "2023-02-25T23:15:20Z")

</div>

I was trying to get the Enhanced Input system to work with C++ and local multiplayer. I had the same problem where the player was created and splitscreen worked but no input was being accepted to the second player. Thank you for discovering that a delay was necessary.

Here’s some tips if you’re trying to do this in C++.  
In your Game Mode BeginPlay function create the player like normal:

```auto
APlayerController* NewController = UGameplayStatics::CreatePlayer(GetWorld(), 1, true);

```

This works just fine if you have enough Player Start actors in the world.

Now in your player character you have to wait some time after begin play, you can do this in two ways, create a timer and a callback in your header:

```auto
FTimerHandle BindInputsTimer;

UFUNCTION()
void BindInputs();

```

And in your implementation execute the timer with the callback in BeginPlay:

```auto
void AMyCharacter::BeginPlay()
{
    // Call the base class
    Super::BeginPlay();

    if (GetWorld())
    {
        GetWorld()->GetTimerManager().SetTimer(BindInputsTimer, this, &AMyCharacter::BindInputs, 0.2f);
    }
}

void AMyCharacter::BindInputs()
{
    //Add Input Mapping Context
    if (APlayerController* PlayerController = Cast<APlayerController>(Controller))
    {
        if (UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(PlayerController->GetLocalPlayer()))
        {
            Subsystem->AddMappingContext(DefaultMappingContext, 0);
        }
    }
}

```

I would not consider this good practice though. I’m pretty sure you only have to wait a single frame for the Enhanced Input system to become available, so it might be better to just check if the the mapping context has been set in Tick and set it if not, then you don’t need a timer and on the first tick the context will be set.

```auto
void AMyCharacter::Tick(float DeltaTime)
{
    //Add Input Mapping Context
    if (APlayerController* PlayerController = Cast<APlayerController>(Controller))
    {
        if (UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(PlayerController->GetLocalPlayer()))
        {
            if (!Subsystem->HasMappingContext(DefaultMappingContext))
            {
                Subsystem->AddMappingContext(DefaultMappingContext, 0);
            }
        }
    }
}

```

This isn’t really good practice either, but I can’t find a place in the actor lifecycle that’s after BeginPlay and before Tick where the Enhance Input system is available.

Also Skip Assigning Gamepad to Player 1 does not work for me either.

[Next page](https://forums.unrealengine.com/t/problem-with-enhanced-input-and-split-screen-on-ue-5-1/714667.md?page=2)
