Detecting the type of controller being used

Hi I was hoping to be able to detect that if a gamepad button is pressed, knowing if it came fro playstation controller or xbox controller.

Like I want to change the message “Press X to interact” to “Press ‘square’ to interact”

I already have a way through blueprints to know if a gamepad is being used. Looking through the forums and online it seems it is not possible with blueprints to determine if the gamepad is PS4 or XB1 and people have said to use c++.

How do I add c++ code into my blueprints, and what would that code look like? Of course if it is possible through blueprints that would be much preferred.

Appreciate any help I can get!

I think that it is possible by making a new c++ actor and then you have access to all
C++ files

I think that it is possible by making a new c++ actor and then you have access to all
C++ files