Navigate to “Game Control Settings.” Under this heading, you will see “Enable Gamepad Detection.” Check the box to enable this feature.
You will find the icon on the top-right of the screen. BlueStacks uses a plug-in-and-play feature, so it should detect your controller immediately when you connect it.