How to detect the use of a controller in your game?

Whenever I plug in my Nintendo Switch Pro Controller via USB on Steam (or use Bluetooth to connect) and play some games made in Unreal Engine, the game is usually able to seamlessly detect the device and allows me to use it for the game.

I am trying to figure out how to implement this feature into my game. Unreal Engine does not currently recognize my Pro Controller either in the editor or in-game, even though I have Input Actions and an Input Mapping Context that accounts for gamepad buttons. I’ve tried both wired and not wired for my Pro Controller, but I can’t seem to get it to work.

I know that blueprint node named OnInputDeviceConnectionChange exists, but I am unsure of how to utilize it for my goal. Any help would be greatly appreciated as getting a controller set up is one of the biggest roadblocks I have with developing my project at the moment.

You may need to get a plug-in that enables support for a Nintendo switch controller, I don’t think the engine by default supports this.

A quick Google search revealed there is a plug in called JoyShockKibrary4Unreal, perhaps look into this as you may need this or something similar to setup support for Nintendo controllers in your project.