Game controller configuration

Is it currently possible to configure buttons to act as switches using a gamepad?