How do I control a second player with a gamepad?

Is that done in the construction script for the character? Something like this?
Thanks for responding, .