# IPlatformInputDeviceMapper::OnInputDeviceConnectionChange event return invalid FPlatformUserId in case of disconnection 

**URL:** <https://forums.unrealengine.com/t/iplatforminputdevicemapper-oninputdeviceconnectionchange-event-return-invalid-fplatformuserid-in-case-of-disconnection/2668714>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [September 19, 2025, 10:47am UTC](https://forums.unrealengine.com/t/iplatforminputdevicemapper-oninputdeviceconnectionchange-event-return-invalid-fplatformuserid-in-case-of-disconnection/2668714 "2025-09-19T10:47:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 19, 2025, 10:47am UTC](https://forums.unrealengine.com/t/iplatforminputdevicemapper-oninputdeviceconnectionchange-event-return-invalid-fplatformuserid-in-case-of-disconnection/2668714/1 "2025-09-19T10:47:09Z")

</div>

Hello,

with the update to 5.6, we noticed that on PC, PS5 and XBox platforms, a popup we used to notify users of gamepad disconnection stopped working.

Upon investigation, we noticed that currently, in case of disconnection, the IPlatformInputDeviceMapper::OnInputDeviceConnectionChange event returns an invalid PlatformUserId because in the concerned input interfaces the association between FInputDeviceId and FPlatformUserId is nulled calling IPlatformInputDeviceMapper::Internal\_MapInputDeviceToUser with IPlatformInputDeviceMapper::GetUserForUnpairedInputDevices as argument, and in Internal\_MapInputDeviceToUser method the new values are cached before broadcasting the event.

Is this intended?

Are there any other ways to find out which user a disconnected controller was associated with?

Thank you for your kind help.

Best regards,

Leonardo

---

<div class="post-metadata">

**Author:** ![BenjaFriend22](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benjafriend22/32/915021_2.png) [@BenjaFriend22](https://forums.unrealengine.com/u/BenjaFriend22)\
**Post date:** [September 26, 2025, 1:29pm UTC](https://forums.unrealengine.com/t/iplatforminputdevicemapper-oninputdeviceconnectionchange-event-return-invalid-fplatformuserid-in-case-of-disconnection/2668714/2 "2025-09-26T13:29:55Z")

</div>

Hey there! Thank you for this report, I’ve created : [Unreal Engine Issues and Bug Tracker (UE\-287887)](https://issues.unrealengine.com/issue/UE%5C-287887) for your tracking and also added some other related issues with input device connection events that should be solved as well.

The only work around would be the listen for the connection events, and store the platform user id -\> Input device Id relationship in your code as needed.

Thanks,

Ben

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 30, 2025, 8:20am UTC](https://forums.unrealengine.com/t/iplatforminputdevicemapper-oninputdeviceconnectionchange-event-return-invalid-fplatformuserid-in-case-of-disconnection/2668714/3 "2025-09-30T08:20:17Z")

</div>

Hi Ben,

thank you very much for your rapid response.

We have added a temp fix for now and we’ll track the issue you have created.

Have a nice day

Leonardo
