Custom Gamepad Controls?

How do I make my game to make custom gamepad controls? Where there is a ui with different actions, you click to select action which hi lights, then you press the button/move analog stick to set controls. The controls also need to show beside the action. Sorry if i’m a bit specific.