How to indicate if the player using a xbox controller on pc?

is there any “smart” way to know if the player is using a controller? i have to check all the buttons and axes each Uptade? i’m looking for something like:
if(controller.AnyButtonIsPressed)
{
\change GUI icons or something…
}

Good day.

Maybe this post han help you.

https://answers.unity.com/questions/1100642/joystick-runtime-plugunplug-detection.html

bye!