help needed, pwm board

hi
i need a little help with writing some code so i can use push buttons as well a joystick controls using a pwm servo driver board, i have the joy stick code down, its just integrating the button code and gettting it to work, can any one help and thank you

Post the code which you have already developed for the joy stick and say what you expect the buttons to do.