# How do you detect a second gamepad for splitscreen?

**URL:** <https://forums.unrealengine.com/t/how-do-you-detect-a-second-gamepad-for-splitscreen/365975>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, splitscreen, Multiplayer, question, Blueprint, CPP\
**Created:** [August 3, 2016, 9:03am UTC](https://forums.unrealengine.com/t/how-do-you-detect-a-second-gamepad-for-splitscreen/365975 "2016-08-03T09:03:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Roghshire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roghshire](https://forums.unrealengine.com/u/Roghshire)\
**Post date:** [November 27, 2023, 3:42pm UTC](https://forums.unrealengine.com/t/how-do-you-detect-a-second-gamepad-for-splitscreen/365975/4 "2023-11-27T15:42:02Z")

</div>

For those finding this from Google; as of 5.1 this approach has been deprecated.

The updated solution:

> [@How to get IPlatformInputDeviceMapper?](https://forums.unrealengine.com/t/how-to-get-iplatforminputdevicemapper/717675/6):
>
> I ran into this issue today. To expand on this a bit more, add this to your header file: UFUNCTION() void OnControllerChanged(EInputDeviceConnectionState connectionState, FPlatformUserId userID, FInputDeviceId inputDeviceID); Connect to the delegate: void SOMEFILE::BeginPlay() { Super::BeginPlay(); IPlatformInputDeviceMapper::Get().GetOnInputDeviceConnectionChange().AddUObject(this, &SOMEFILE::OnControllerChanged); } Function that gets called: void SOMEFILE::OnControllerChanged(EInpu…

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-you-detect-a-second-gamepad-for-splitscreen/365975)._
