Controller Unplug Pause Game

For Full Controller Support on Steam - they would like the game to pause when a controller is unplugged. I only know how to Blueprint.

Anybody have a solution for this?

Thank you!

Hey mate, here is a C++ solution: