I was wondering how can you find out if a certain button has been pushed on a gamepad, or just if a certain circut is opened or closed...Any suggestions are appreciated

-Bryan