How to get IPlatformInputDeviceMapper?

I changed from version 5.0 to 5.1 and now i get this “Warning: C4996 ‘FCoreDelegates::OnControllerConnectionChange’: OnControllerConnectionChange, use IPlatformInputDeviceMapper::GetOnInputDeviceConnectionChange()” and i have no idea how to get this IPlatformInputDeviceMapper.

1 Like

Same problem for me :sweat_smile:

IPlatformInputDeviceMapper::Get() would work.
ex) ((IPlatformInputDeviceMapper::Get()).GetOnInputDeviceConnectionChange()).AddRaw(this, &YOURFUNCTION);

You should

  1. add PublicDependencyModuleNames.AddRange(new string[] { “ApplicationCore” }); in your module (
  2. include “GenericPlatform/GenericPlatformInputDeviceMapper.h”
1 Like

Thanks so much! This worked well for me. Note also the signature changed a bit but it’s not hard to figure out. bools change to enums and the controller and player ids/indices change to structs with member functions.